libata: add @spd_limit to sata_down_spd_limit()
commita07d499b4759881db1359dd8812eecd00b0e0a28
authorTejun Heo <tj@kernel.org>
Thu, 29 Jan 2009 11:31:33 +0000 (29 20:31 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 3 Feb 2009 04:03:22 +0000 (2 23:03 -0500)
treeaaa5a5c95b64ab121ca89a71899abfe8837890f6
parent99cf610aa4840d822cdc67d194b23b55010ca9bd
libata: add @spd_limit to sata_down_spd_limit()

Add @spd_limit to sata_down_spd_limit() so that the caller can specify
the SPD limit it wants.  This parameter doesn't get in the way even
when it's too low.  The closest possible limit is applied.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c
drivers/ata/libata-eh.c
drivers/ata/libata-pmp.c
drivers/ata/libata.h