]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
alim15x3.c: M5229 (rev c8) support for DMA cd-writer
authorMichael De Backer <micdb@skynet.be>
Mon, 4 Dec 2006 13:24:41 +0000 (14:24 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 4 Dec 2006 13:24:41 +0000 (14:24 +0100)
Configuration bits are not set properly for DMA on some chipset revisions.
It has already been corrected for M5229 (rev c7) but not for M5229 (rev
c8).  This leads to the bug described at
http://bugzilla.kernel.org/show_bug.cgi?id=5786 (lost interrupt + ide bus
hangs).

Signed-off-by: Michael De Backer <micdb@skynet.be>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/ide/pci/alim15x3.c

index 8b24b4f2a839a0abe424cf5e75eebd2bf5a9434b..e15948b44c686129b4beeddf9316b35011ec8c98 100644 (file)
@@ -731,7 +731,7 @@ static unsigned int __devinit ata66_ali15x3 (ide_hwif_t *hwif)
        
        if(m5229_revision <= 0x20)
                tmpbyte = (tmpbyte & (~0x02)) | 0x01;
-       else if (m5229_revision == 0xc7)
+       else if (m5229_revision == 0xc7 || m5229_revision == 0xc8)
                tmpbyte |= 0x03;
        else
                tmpbyte |= 0x01;