linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libata-dev#upstream-fixes] pata_amd: fix an obvious bug in cable detection
@ 2007-02-05  8:01 Tejun Heo
  2007-02-05 11:28 ` Alan
  2007-02-25  1:52 ` Jeff Garzik
  0 siblings, 2 replies; 10+ messages in thread
From: Tejun Heo @ 2007-02-05  8:01 UTC (permalink / raw)
  To: Jeff Garzik, Alan Cox, linux-ide; +Cc: stable

80c test mask is at bits 18 and 19 of EIDE Controller Configuration
not 22 and 23.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
---
This makes unreliable cable detection even more unreliable.  Please
consider for -stable.  Thanks.

 drivers/ata/pata_amd.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: work/drivers/ata/pata_amd.c
===================================================================
--- work.orig/drivers/ata/pata_amd.c
+++ work/drivers/ata/pata_amd.c
@@ -128,7 +128,7 @@ static void timing_setup(struct ata_port
 
 static int amd_pre_reset(struct ata_port *ap)
 {
-	static const u32 bitmask[2] = {0x03, 0xC0};
+	static const u32 bitmask[2] = {0x03, 0x0C};
 	static const struct pci_bits amd_enable_bits[] = {
 		{ 0x40, 1, 0x02, 0x02 },
 		{ 0x40, 1, 0x01, 0x01 }
@@ -247,7 +247,7 @@ static void amd133_set_dmamode(struct at
  */
 
 static int nv_pre_reset(struct ata_port *ap) {
-	static const u8 bitmask[2] = {0x03, 0xC0};
+	static const u8 bitmask[2] = {0x03, 0x0C};
 	static const struct pci_bits nv_enable_bits[] = {
 		{ 0x50, 1, 0x02, 0x02 },
 		{ 0x50, 1, 0x01, 0x01 }

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

end of thread, other threads:[~2007-02-26 16:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-05  8:01 [PATCH libata-dev#upstream-fixes] pata_amd: fix an obvious bug in cable detection Tejun Heo
2007-02-05 11:28 ` Alan
2007-02-25  1:52 ` Jeff Garzik
2007-02-25 13:29   ` Alan
2007-02-25 14:19     ` Tejun Heo
2007-02-25 17:39       ` Bartlomiej Zolnierkiewicz
2007-02-25 17:41         ` Tejun Heo
2007-02-25 18:50           ` Bartlomiej Zolnierkiewicz
2007-02-26 17:27           ` Alan
2007-02-25 19:13       ` Alan

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).