diff options
author | Stanley Chu <stanley.chu@mediatek.com> | 2022-06-16 13:37:16 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-06-16 22:08:43 -0400 |
commit | d81c4c6f71704348f7ea3191672ac98435831db9 (patch) | |
tree | 7e3c66167a565a586533858444d4b19890a43ebc /drivers/ufs | |
parent | fc53683b45b053d94a660c417fd3d63cabc43b6f (diff) | |
download | linux-rpi-d81c4c6f71704348f7ea3191672ac98435831db9.tar.gz linux-rpi-d81c4c6f71704348f7ea3191672ac98435831db9.tar.bz2 linux-rpi-d81c4c6f71704348f7ea3191672ac98435831db9.zip |
scsi: ufs: Fix ADAPT logic for HS-G5
ADAPT now is added not only for HS Gear4 mode but also higher gears. Fix
the logic for higher gears.
Link: https://lore.kernel.org/r/20220616053725.5681-3-stanley.chu@mediatek.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs')
-rw-r--r-- | drivers/ufs/core/ufshcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index f484ba61472a..295a900d39a3 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -3804,7 +3804,7 @@ int ufshcd_dme_configure_adapt(struct ufs_hba *hba, { int ret; - if (agreed_gear != UFS_HS_G4) + if (agreed_gear < UFS_HS_G4) adapt_val = PA_NO_ADAPT; ret = ufshcd_dme_set(hba, |