linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/4] libata: ACPI checks for 80wire cable
@ 2007-07-26 17:37 Alan Cox
  2007-08-16  6:37 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2007-07-26 17:37 UTC (permalink / raw)
  To: akpm, linux-ide

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 <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.23rc1-mm1/drivers/ata/pata_amd.c linux-2.6.23rc1-mm1/drivers/ata/pata_amd.c
--- linux.vanilla-2.6.23rc1-mm1/drivers/ata/pata_amd.c	2007-07-26 15:01:52.909753448 +0100
+++ linux-2.6.23rc1-mm1/drivers/ata/pata_amd.c	2007-07-26 15:18:24.934942696 +0100
@@ -268,6 +268,9 @@
  	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;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-16  6:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26 17:37 [PATCH 3/4] libata: ACPI checks for 80wire cable Alan Cox
2007-08-16  6:37 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).