FROMLIST: 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.

Bug: 235550312
Link: https://lore.kernel.org/linux-scsi/20220609085751.25305-3-stanley.chu@mediatek.com/
Change-Id: Ib832610d34e5facf53698337e4ed610a92c772b5
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
This commit is contained in:
Stanley Chu
2022-06-10 15:21:27 +08:00
committed by Carlos Llamas
parent 97d940cfa3
commit 0b0ceacf04

View File

@@ -3767,7 +3767,7 @@ int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
{ {
int ret; int ret;
if (agreed_gear != UFS_HS_G4) if (agreed_gear < UFS_HS_G4)
adapt_val = PA_NO_ADAPT; adapt_val = PA_NO_ADAPT;
ret = ufshcd_dme_set(hba, ret = ufshcd_dme_set(hba,