Skip to content
  • Tejun Heo's avatar
    libata: fix incorrect link online check during probe · 3b761d3d
    Tejun Heo authored
    While trying to work around spurious detection retries for
    non-existent devices on slave links, commit
    816ab897
    
     incorrectly added link
    offline check logic before ata_eh_thaw() was called.  This means that
    if an occupied link goes down briefly at the time that offline check
    was performed, device class will be cleared to ATA_DEV_NONE and libata
    wouldn't retry thus failing detection of the device.
    
    The offline check should be done after the port is thawed together
    with online check so that such link glitches can be detected by the
    interrupt handler and handled properly.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Reported-by: default avatarTim Blechmann <tim@klingt.org>
    Cc: stable@kernel.org
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    3b761d3d