From a34d2fc0f33dc939c719b6480649b081224bf3b6 Mon Sep 17 00:00:00 2001 From: Subhash Jadavani Date: Wed, 6 May 2015 17:29:09 -0700 Subject: [PATCH] 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 --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 859ee3835edb..7b4011f9c0ef 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -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 * 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; else return false;