1 From stable-bounces@linux.kernel.org Mon Feb 5 04:48:48 2007
2 From: Tejun Heo <htejun@gmail.com>
3 Date: Mon, 5 Feb 2007 21:47:13 +0900
4 Subject: ide: fix drive side 80c cable check
5 To: Alan <alan@lxorguk.ukuu.org.uk>
6 Cc: linux-ide@vger.kernel.org, stable@kernel.org, bzolnier@gmail.com
7 Message-ID: <20070205124713.GL1625@htj.dyndns.org>
8 Content-Disposition: inline
11 eighty_ninty_three() had word 93 validitity check but not the 80c bit
12 test itself (bit 12). This increases the chance of incorrect wire
13 detection especially because host side cable detection is often
14 unreliable and we sometimes soley depend on drive side cable
17 Signed-off-by: Tejun Heo <htejun@gmail.com>
18 Acked-by: Alan <alan@lxorguk.ukuu.org.uk>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
22 drivers/ide/ide-iops.c | 2 ++
23 1 file changed, 2 insertions(+)
25 --- linux-2.6.20.1.orig/drivers/ide/ide-iops.c
26 +++ linux-2.6.20.1/drivers/ide/ide-iops.c
27 @@ -607,6 +607,8 @@ u8 eighty_ninty_three (ide_drive_t *driv
28 if(!(drive->id->hw_config & 0x4000))
30 #endif /* CONFIG_IDEDMA_IVB */
31 + if (!(drive->id->hw_config & 0x2000))