diff options
author | 2009-01-29 20:31:33 +0900 | |
---|---|---|
committer | 2009-02-02 23:03:22 -0500 | |
commit | a07d499b4759881db1359dd8812eecd00b0e0a28 (patch) | |
tree | aaa5a5c95b64ab121ca89a71899abfe8837890f6 /drivers/ata/libata-pmp.c | |
parent | libata: clear dev->ering in smarter way (diff) | |
download | linux-a07d499b4759881db1359dd8812eecd00b0e0a28.tar.gz linux-a07d499b4759881db1359dd8812eecd00b0e0a28.tar.bz2 linux-a07d499b4759881db1359dd8812eecd00b0e0a28.zip |
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>
Diffstat (limited to 'drivers/ata/libata-pmp.c')
-rw-r--r-- | drivers/ata/libata-pmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c index 98ca07a2db87..619f2c33950e 100644 --- a/drivers/ata/libata-pmp.c +++ b/drivers/ata/libata-pmp.c @@ -729,7 +729,7 @@ static int sata_pmp_eh_recover_pmp(struct ata_port *ap, if (tries) { /* consecutive revalidation failures? speed down */ if (reval_failed) - sata_down_spd_limit(link); + sata_down_spd_limit(link, 0); else reval_failed = 1; |