From 283943941f13b63c6f6cc253f82f79c4ef113271 Mon Sep 17 00:00:00 2001 From: sos Date: Tue, 24 Oct 2000 13:50:22 +0000 Subject: [PATCH] Fix the problem with DMA mode not working on Aladdin chips. Amasing in how many ways Acer has screwed up that chip. --- sys/dev/ata/ata-all.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index a5397254d0ee..947d82053ffe 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -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); }