ide: fix drive side 80c cable check
authorTejun Heo <htejun@gmail.com>
Mon, 5 Feb 2007 12:47:13 +0000 (21:47 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 24 Feb 2007 00:24:25 +0000 (16:24 -0800)
eighty_ninty_three() had word 93 validitity check but not the 80c bit
test itself (bit 12).  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>
Acked-by: Alan <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ide/ide-iops.c

index badde6331775a12208c375fb68139b0e156d9606..65580559cee4a00a11074b42d1c0ab749d852424 100644 (file)
@@ -607,6 +607,8 @@ u8 eighty_ninty_three (ide_drive_t *drive)
        if(!(drive->id->hw_config & 0x4000))
                return 0;
 #endif /* CONFIG_IDEDMA_IVB */
+       if (!(drive->id->hw_config & 0x2000))
+               return 0;
        return 1;
 }