From: Tejun Heo Date: Mon, 7 Apr 2008 13:47:19 +0000 (+0900) Subject: libata: move generic hardreset code from sata_sff_hardreset() to sata_link_hardreset() X-Git-Tag: v2.6.26-rc1~1150^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dadd45b24145d6aee2fabb28d7aef972301892b;p=pandora-kernel.git 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: Tejun Heo --- Reading git-diff-tree failed