diff options
author | Stanley Chu <stanley.chu@mediatek.com> | 2019-09-16 17:56:51 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-10-01 05:01:17 +0200 |
commit | e6d6ba8014e5205d66e3711047463f04132c3b1e (patch) | |
tree | 338d296311821a200a0b7f1456e03dfa9dc8a225 /drivers/scsi/ufs/ufs-mediatek.c | |
parent | scsi: ufs: override auto suspend tunables for ufs (diff) | |
download | linux-e6d6ba8014e5205d66e3711047463f04132c3b1e.tar.xz linux-e6d6ba8014e5205d66e3711047463f04132c3b1e.zip |
scsi: ufs-mediatek: enable auto suspend capability
Enable auto suspend capability in MediaTek UFS driver.
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/scsi/ufs/ufs-mediatek.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index 0f6ff33ce52e..83e28edc3ac5 100644 --- a/drivers/scsi/ufs/ufs-mediatek.c +++ b/drivers/scsi/ufs/ufs-mediatek.c @@ -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 |