: Check the right register for the DMA enabled flags
PATCH 1/1 : Check the right register for the DMA enabled flags
Mirrors change in IT821X
drivers/ata/ata_generic.c +1 -1
@@ -50,7 +50,7 @@/* Bits 5 and 6 indicate if DMA is active on master/slave */ if (ap->ioaddr.bmdma_addr) - dma_enabled =ioread8 (ap->ioaddr.bmdma_addr +ATA_DMA_CMD ); + dma_enabled =ioread8 (ap->ioaddr.bmdma_addr +ATA_DMA_STATUS );for (i =0 ; i <ATA_MAX_DEVICES ; i++) {struct ata_device *dev = &ap->device[i];
Jeff Garzik
Applieddrivers/ata/ata_generic.c line 53
Quoted 13 lines · Alan Cox
Mirrors change in IT821X
Signed-off-by Alan Cox <[email protected]>diff -u --new-file --exclude-from
/usr/src/exclude--recursivelinux.vanilla-2.6.22-rc6-mm1/drivers/ata/ata_generic.clinux-2.6.22-rc6-mm1/drivers/ata/ata_generic.cdrivers/ata/ata_generic.c +1
-1@@ -50,7 +50,7 @@/* Bits 5 and 6 indicate if DMA is active on master/slave */ if (ap->ioaddr.bmdma_addr) - dma_enabled =ioread8 (ap->ioaddr.bmdma_addr +ATA_DMA_CMD ); + dma_enabled =ioread8 (ap->ioaddr.bmdma_addr +ATA_DMA_STATUS );
applied
Please put driver or subsystem name in subject, to disambiguate. Email subject goes straight into kernel changelog verbatim, and is in essence a global namespace.
Quoted 17 lines · On Tue, 03 Jul 2007 10:10:25 -0400 Jeff Garzik wrote:
drivers/ata/ata_generic.c line 53
Quoted 13 lines · Alan Cox
Mirrors change in IT821X
Signed-off-by Alan Cox <[email protected]>diff -u --new-file --exclude-from
/usr/src/exclude--recursivelinux.vanilla-2.6.22-rc6-mm1/drivers/ata/ata_generic.clinux-2.6.22-rc6-mm1/drivers/ata/ata_generic.cdrivers/ata/ata_generic.c +1
-1@@ -50,7 +50,7 @@/* Bits 5 and 6 indicate if DMA is active on master/slave */ if (ap->ioaddr.bmdma_addr) - dma_enabled =ioread8 (ap->ioaddr.bmdma_addr +ATA_DMA_CMD ); + dma_enabled =ioread8 (ap->ioaddr.bmdma_addr +ATA_DMA_STATUS );applied
Quoted 3 lines
Please put driver or subsystem name in subject, to disambiguate. Email subject goes straight into kernel changelog verbatim, and is in essence a global namespace.
and please use linux-ide.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***