mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
UPSTREAM: scsi: ufs-mediatek: enable auto suspend capability
Enable auto suspend capability in MediaTek UFS driver. Bug: 149040610 Change-Id: I6b1272f9b3634b651e6a3f0abbe1838d4bfd33a9 (cherry picked from commit e6d6ba8014e5205d66e3711047463f04132c3b1e) Link: https://lore.kernel.org/r/1568649411-5127-4-git-send-email-stanley.chu@mediatek.com Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
ecf5064346
commit
274f27845b
1 changed files with 3 additions and 0 deletions
|
|
@ -147,6 +147,9 @@ static int ufs_mtk_init(struct ufs_hba *hba)
|
|||
if (err)
|
||||
goto out_variant_clear;
|
||||
|
||||
/* Enable runtime autosuspend */
|
||||
hba->caps |= UFSHCD_CAP_RPM_AUTOSUSPEND;
|
||||
|
||||
/*
|
||||
* ufshcd_vops_init() is invoked after
|
||||
* ufshcd_setup_clock(true) in ufshcd_hba_init() thus
|
||||
|
|
|
|||
Loading…
Reference in a new issue