Skip to content
Commit 9dadd45b authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

libata: move generic hardreset code from sata_sff_hardreset() to sata_link_hardreset()



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>
parent a89611e8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment