]> git.baikalelectronics.ru Git - kernel.git/commit
libata: fix drive side 80c cable check, take 3
authorTejun Heo <htejun@gmail.com>
Mon, 5 Feb 2007 14:21:19 +0000 (23:21 +0900)
committerJeff Garzik <jeff@garzik.org>
Thu, 15 Feb 2007 23:04:01 +0000 (18:04 -0500)
commit1c322f69a93225352a5b2cd1259f48effc4ee93e
tree20a5c677c6ed74d4518a8da399f71d2f3bd5bc8b
parent816eefcd387249a5171c6d3bda78b8c16ae0c7e2
libata: fix drive side 80c cable check, take 3

The 80c wire bit is bit 13, not 14.  Bit 14 is always 1 if word93 is
implemented.  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 the test
and add word93 validity check.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/ata.h