All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ide: fix drive side 80c cable check
@ 2007-02-05  7:47 Tejun Heo
  2007-02-05 11:18 ` Alan
  0 siblings, 1 reply; 7+ messages in thread
From: Tejun Heo @ 2007-02-05  7:47 UTC (permalink / raw)
  To: bzolnier, linux-ide, Alan Cox; +Cc: stable

The 80c wire bit is bit 13, not 14.  This increases the chance of
incorrect wire detection especially because host side cable detection
is often unreliable and we sometimes soley depend on drive side cable
detection.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
---
Please consider for -stable.

 drivers/ide/ide-iops.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: work/drivers/ide/ide-iops.c
===================================================================
--- work.orig/drivers/ide/ide-iops.c
+++ work/drivers/ide/ide-iops.c
@@ -604,7 +604,7 @@ u8 eighty_ninty_three (ide_drive_t *driv
 	if (!(drive->id->hw_config & 0x6000))
 		return 0;
 #ifndef CONFIG_IDEDMA_IVB
-	if(!(drive->id->hw_config & 0x4000))
+	if (!(drive->id->hw_config & 0x2000))
 		return 0;
 #endif /* CONFIG_IDEDMA_IVB */
 	return 1;

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

end of thread, other threads:[~2007-07-12 18:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-05  7:47 [PATCH] ide: fix drive side 80c cable check Tejun Heo
2007-02-05 11:18 ` Alan
2007-02-05 12:47   ` [PATCH] ide: fix drive side 80c cable check, take 2 Tejun Heo
2007-02-05 13:28     ` Alan
     [not found]       ` <58cb370e0702061454j1dfe2492w240ca06c028043b7@mail.gmail.com>
2007-02-06 23:09         ` Bartlomiej Zolnierkiewicz
2007-07-12 18:34     ` Sergei Shtylyov
2007-07-12 18:45       ` Sergei Shtylyov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.