• Tejun Heo's avatar
    [PATCH] libata-hp-prep: implement followup softreset handling · 664faf09
    Tejun Heo authored
    In some cases, hardreset must be followed by SRST.
    
    * some controllers can't classify with hardreset
    * some controllers can't wait for !BSY after hardreset (LLDD should
      explicitly request followup softreset by returning -EAGAIN)
    * (later) PM needs SRST w/ PMP==15 to operate after hardreset
    
    To handle above cases, this patch implements follow-up softreset.
    After a hardreset, ata_eh_reset() checks whether any of above
    conditions are met and do a follow-up softreset if necessary.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    664faf09
libata-eh.c 40.2 KB