From: Alan Cox <[EMAIL PROTECTED]>
We can make use of this on the pata_amd driver as many Nvidia devices don't
have reliable cable detect.
Signed-off-by: Alan Cox <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
drivers/ata/pata_amd.c | 3 +++
1 files changed, 3 insertions(+)
diff -puN
drivers/ata/pata_amd.c~libata-acpi-checks-for-80wire-cable-use-in-pata_amd
drivers/ata/pata_amd.c
--- a/drivers/ata/pata_amd.c~libata-acpi-checks-for-80wire-cable-use-in-pata_amd
+++ a/drivers/ata/pata_amd.c
@@ -268,6 +268,9 @@ static int nv_cable_detect(struct ata_po
pci_read_config_word(pdev, 0x62 - 2 * ap->port_no, &udma);
if ((udma & 0xC4) == 0xC4 || (udma & 0xC400) == 0xC400)
cbl = ATA_CBL_PATA80;
+ /* And a triple check across suspend/resume with ACPI around */
+ if (ata_acpi_cbl_80wire(ap))
+ cbl = ATA_CBL_PATA80;
return cbl;
}
_
-
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