Fix the problem with DMA mode not working on Aladdin chips.

Amasing in how many ways Acer has screwed up that chip.
This commit is contained in:
Søren Schmidt 2000-10-24 13:50:22 +00:00
parent 82494980f2
commit 7f7e251f51

View File

@ -1107,8 +1107,7 @@ ata_intr(void *data)
#endif
default:
if (scp->flags & ATA_DMA_ACTIVE) {
if (((dmastat = ata_dmastatus(scp)) &
(ATA_BMSTAT_ACTIVE|ATA_BMSTAT_INTERRUPT))!=ATA_BMSTAT_INTERRUPT)
if (!((dmastat = ata_dmastatus(scp)) & ATA_BMSTAT_INTERRUPT))
return;
outb(scp->bmaddr + ATA_BMSTAT_PORT, dmastat | ATA_BMSTAT_INTERRUPT);
}