mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
ata_generic: Check the right register for the DMA enabled flags
Mirrors change in IT821X Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
ee58150235
commit
d6f4d5eafd
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ static int generic_set_mode(struct ata_port *ap, struct ata_device **unused)
|
||||||
|
|
||||||
/* Bits 5 and 6 indicate if DMA is active on master/slave */
|
/* Bits 5 and 6 indicate if DMA is active on master/slave */
|
||||||
if (ap->ioaddr.bmdma_addr)
|
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++) {
|
for (i = 0; i < ATA_MAX_DEVICES; i++) {
|
||||||
struct ata_device *dev = &ap->device[i];
|
struct ata_device *dev = &ap->device[i];
|
||||||
|
|
Loading…
Reference in a new issue