Commit f792068e authored by Alan Cox's avatar Alan Cox Committed by Jeff Garzik

libata: cable logic

The cable detect isolation patch inadvertently removed 40 wire short
cable handling. Put it back
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 45db2f6c
...@@ -4033,6 +4033,10 @@ static int cable_is_40wire(struct ata_port *ap) ...@@ -4033,6 +4033,10 @@ static int cable_is_40wire(struct ata_port *ap)
/* If the controller thinks we are 80 wire, we are */ /* If the controller thinks we are 80 wire, we are */
if (ap->cbl == ATA_CBL_PATA80 || ap->cbl == ATA_CBL_SATA) if (ap->cbl == ATA_CBL_PATA80 || ap->cbl == ATA_CBL_SATA)
return 0; 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 /* If the controller doesn't know we scan
- Note: We look for all 40 wire detects at this point. - Note: We look for all 40 wire detects at this point.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment