• Tejun Heo's avatar
    libata: move generic hardreset code from sata_sff_hardreset() to sata_link_hardreset() · 9dadd45b
    Tejun Heo authored
    sata_sff_hardreset() contains link readiness wait logic which isn't
    SFF specific.  Move that part into sata_link_hardreset(), which now
    takes two more parameters - @online and @check_ready.  Both are
    optional.  The former is out parameter for link onlineness after
    reset.  The latter is used to wait for link readiness after hardreset.
    
    Users of sata_link_hardreset() is updated to use new funtionality and
    ahci_hardreset() is updated to use sata_link_hardreset() instead of
    sata_sff_hardreset().  This doesn't really cause any behavior change.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    9dadd45b
libata-core.c 158 KB