scsi: ufs: don't overwrite auto tuned unipro attributes

If both host and device support UniPro Specification v1.6 then many of the
important UniPro timing parameters are auto tuned after the link start up.
But due to SW bug these auto tuned parameters might get overwritten, this
change fixes the issue by properly checking the UniPro specifcation
version.

Change-Id: I152d5dcfac0bc0f8a5dc6b1e7267e254ec0d5d80
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
Subhash Jadavani 2015-05-06 17:29:09 -07:00 committed by David Keitel
parent 426ffdda1a
commit a34d2fc0f3

View file

@ -1033,7 +1033,7 @@ static bool ufshcd_is_unipro_pa_params_tuning_req(struct ufs_hba *hba)
* logic simple, we will only do manual tuning if local unipro version * logic simple, we will only do manual tuning if local unipro version
* doesn't support ver1.6 or later. * doesn't support ver1.6 or later.
*/ */
if (ufshcd_get_local_unipro_ver(hba) <= UFS_UNIPRO_VER_1_6) if (ufshcd_get_local_unipro_ver(hba) < UFS_UNIPRO_VER_1_6)
return true; return true;
else else
return false; return false;