libata: IDENTIFY backwards for drive side cable detection
authorTejun Heo <htejun@gmail.com>
Thu, 22 Mar 2007 13:24:19 +0000 (22:24 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 28 Mar 2007 06:04:27 +0000 (02:04 -0400)
commit8c3c52a8f00536ce55dafa055b4a211f878f3901
treec44fbfd5928ecd6329c3054fb88f04494d3508ef
parent55a61604cd1354e1783364e1c901034f2f474b7d
libata: IDENTIFY backwards for drive side cable detection

For drive side cable detection to work correctly, drives need to be
identified backwards such that the slave device releases PDIAG- before
the mater drive tries to detect cable type.  ata_bus_probe() was fixed
by commit f31f0cc2f0b7527072d94d02da332d9bb8d7d94c but the new EH path
wasn't fixed.  This patch makes new EH path do IDENTIFY backwards.

ata_dev_configure() for new devices are still performed master first.
This is to keep the detection messages in forward order.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-eh.c