projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc53683
)
scsi: ufs: Fix ADAPT logic for HS-G5
author
Stanley Chu
<stanley.chu@mediatek.com>
Thu, 16 Jun 2022 05:37:16 +0000
(13:37 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 17 Jun 2022 02:08:43 +0000
(22:08 -0400)
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>
drivers/ufs/core/ufshcd.c
patch
|
blob
|
history
diff --git
a/drivers/ufs/core/ufshcd.c
b/drivers/ufs/core/ufshcd.c
index
f484ba6
..
295a900
100644
(file)
--- 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,