summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorAlan Cox2008-04-08 17:37:50 +0200
committerJeff Garzik2008-04-17 21:44:25 +0200
commitf792068e43a3a156139569304b29ec8fc5dec4e3 (patch)
tree53b27f2ab564f2b7fe0a88e3ad816e9614cb5590 /drivers/ata/libata-core.c
parentlibata: move link onlineness check out of softreset methods (diff)
downloadkernel-qcow2-linux-f792068e43a3a156139569304b29ec8fc5dec4e3.tar.gz
kernel-qcow2-linux-f792068e43a3a156139569304b29ec8fc5dec4e3.tar.xz
kernel-qcow2-linux-f792068e43a3a156139569304b29ec8fc5dec4e3.zip
libata: cable logic
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>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index f60988f5e01b..2556ea29defb 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -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.