/* LOCKING: This routine uses the host lock to protect the DMA stop.  */
static void mv_port_stop(struct ata_port *ap)
/* LOCKING: This routine uses the host lock to protect the DMA stop.  */
static void mv_port_stop(struct ata_port *ap)
{
	unsigned long flags;
	spin_lock_irqsave(ap->lock, flags);
	mv_stop_edma(ap);
	mv_enable_port_irqs(ap, 0);
	spin_unlock_irqrestore(ap->lock, flags);
	mv_port_free_dma_mem(ap);
}