• Tejun Heo's avatar
    libata: IDENTIFY backwards for drive side cable detection · 8c3c52a8
    Tejun Heo authored
    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 f31f0cc2 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: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    8c3c52a8
libata-eh.c 58.1 KB