diff options
author | Lin Ming <ming.m.lin@intel.com> | 2012-05-03 22:15:07 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-07 08:56:39 -0700 |
commit | 9051b1e1aed62944eb634c3a85fad76353e5fa05 (patch) | |
tree | 35cf963a106fc33957e221eb6ce6be6708703fb5 /drivers/i2c | |
parent | ad567d13573186f184fb4a2ec0d3a1ca94baedbb (diff) | |
download | kernel_samsung_smdk4412-9051b1e1aed62944eb634c3a85fad76353e5fa05.zip kernel_samsung_smdk4412-9051b1e1aed62944eb634c3a85fad76353e5fa05.tar.gz kernel_samsung_smdk4412-9051b1e1aed62944eb634c3a85fad76353e5fa05.tar.bz2 |
libata: skip old error history when counting probe trials
commit 6868225e3e92399068be9a5f1635752d91012ad5 upstream.
Commit d902747("[libata] Add ATA transport class") introduced
ATA_EFLAG_OLD_ER to mark entries in the error ring as cleared.
But ata_count_probe_trials_cb() didn't check this flag and it still
counts the old error history. So wrong probe trials count is returned
and it causes problem, for example, SATA link speed is slowed down from
3.0Gbps to 1.5Gbps.
Fix it by checking ATA_EFLAG_OLD_ER in ata_count_probe_trials_cb().
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions