/* Note: The host lock held by the libata layer protects us from two channels both trying to set DMA bits at once  */
static void atiixp_bmdma_stop(struct ata_queued_cmd *qc)
/* Note: The host lock held by the libata layer protects us from two channels both trying to set DMA bits at once  */
static void atiixp_bmdma_stop(struct ata_queued_cmd *qc)
{
	struct ata_port *ap = qc->ap;
	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
	int dn = (2 * ap->port_no) + qc->dev->devno;
	u16 tmp16;
	pci_read_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, &tmp16);
	tmp16 &= ~(1 << dn);
	pci_write_config_word(pdev, ATIIXP_IDE_UDMA_CONTROL, tmp16);
	ata_bmdma_stop(qc);
}