libata: cable logic
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 8 Apr 2008 15:37:50 +0000 (16:37 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:25 +0000 (15:44 -0400)
The cable detect isolation patch inadvertently removed 40 wire short
cable handling. Put it back

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c

index f60988f5e01b823c3bc4c5fd2f1767967b50c42f..2556ea29defb1ba621ac3930fc5f003ee7031e84 100644 (file)
@@ -4033,6 +4033,10 @@ static int cable_is_40wire(struct ata_port *ap)
        /* If the controller thinks we are 80 wire, we are */
        if (ap->cbl == ATA_CBL_PATA80 || ap->cbl == ATA_CBL_SATA)
                return 0;
+       /* If the system is known to be 40 wire short cable (eg laptop),
+          then we allow 80 wire modes even if the drive isn't sure */
+       if (ap->cbl == ATA_CBL_PATA40_SHORT)
+               return 0;
        /* If the controller doesn't know we scan
 
           - Note: We look for all 40 wire detects at this point.
This page took 0.035837 seconds and 5 git commands to generate.