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

libata: check onlineness before using SPD in sata_down_spd_limit()



sata_down_spd_limit() should check whether the link is online before
using the SPD value to determine how to limit the link speed.  Factor
out onlineness test and test it from sata_down_spd_limit().

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 678afac6
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