• Tejun Heo's avatar
    libata: improve probe failure handling · 4ae72a1e
    Tejun Heo authored
    * Move forcing device to PIO0 on device disable into
      ata_dev_disable().  This makes both old and new EHs act the same
      way.
    
    * Speed down only PIO mode on probe failure.  All commands used during
      probing are PIO commands.  There's no point in speeding down DMA.
    
    * Retry at least once after -ENODEV.  Some devices report garbled
      IDENTIFY data after certain events.  This shouldn't cause device
      detach and re-attach.
    
    * Rearrange EH failure path for simplicity.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    4ae72a1e
libata-eh.c 54.9 KB