From 7f7e251f51d5c1bff96292f7edbe513c97b022fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= 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); }