• T
    libata: fix EH device failure handling · d89293ab
    Tejun Heo 提交于
    The dev->pio_mode > XFER_PIO_0 test is there to avoid unnecessary
    speed down warning messages but it accidentally disabled SATA link spd
    down during configuration phase after reset where PIO mode is always
    zero.
    
    This patch fixes the problem by moving the test where it belongs.
    This makes libata probing sequence behave better when the connection
    is flaky at higher link speeds which isn't too uncommon for eSATA
    devices.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
    d89293ab
libata-eh.c 87.0 KB