]> git.baikalelectronics.ru Git - kernel.git/commit
libata: check onlineness before using SPD in sata_down_spd_limit()
authorTejun Heo <tj@kernel.org>
Thu, 29 Jan 2009 11:31:31 +0000 (20:31 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 3 Feb 2009 04:03:08 +0000 (23:03 -0500)
commitd4c9e54d25d5c31e41952a59bda967b6fc92e038
treed91ed8d73e9cb554d071e1d1449d5d0ef883e1a3
parenteb7d88f61e0eb1524bc1976b2f8070a3654fdc7c
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: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c