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:
parent
426ffdda1a
commit
a34d2fc0f3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue