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:
sos 2000-10-24 13:50:22 +00:00
parent ecf43998e4
commit 283943941f

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);
}