Testing this on the VIA boards fixes several problems with otherwise
undetectable SATA bridge chips

Signed-off-by: Alan Cox <[EMAIL PROTECTED]>

diff -u --new-file --recursive --exclude-from /usr/src/exclude 
linux.vanilla-2.6.23rc1-mm1/drivers/ata/pata_via.c 
linux-2.6.23rc1-mm1/drivers/ata/pata_via.c
--- linux.vanilla-2.6.23rc1-mm1/drivers/ata/pata_via.c  2007-07-26 
15:01:52.974743568 +0100
+++ linux-2.6.23rc1-mm1/drivers/ata/pata_via.c  2007-07-26 15:22:30.211654968 
+0100
@@ -180,6 +180,9 @@
           two drives */
        if (ata66 & (0x10100000 >> (16 * ap->port_no)))
                return ATA_CBL_PATA80;
+       /* Check with ACPI so we can spot BIOS reported SATA bridges */
+       if (ata_acpi_cbl_80wire(ap))
+               return ATA_CBL_PATA80;
        return ATA_CBL_PATA40;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to