From: Stanley Chu <stanley.chu@mediatek•com>
To: <linux-scsi@vger•kernel.org>, <martin.petersen@oracle•com>,
<avri.altman@wdc•com>, <alim.akhtar@samsung•com>,
<pedrom.sousa@synopsys•com>, <sthumma@codeaurora•org>,
<jejb@linux•ibm.com>, <bvanassche@acm•org>
Cc: marc.w.gonzalez@free•fr, andy.teng@mediatek•com,
chun-hung.wu@mediatek•com, kuohong.wang@mediatek•com,
evgreen@chromium•org, subhashj@codeaurora•org,
linux-mediatek@lists•infradead.org, peter.wang@mediatek•com,
vivek.gautam@codeaurora•org, matthias.bgg@gmail•com,
Stanley Chu <stanley.chu@mediatek•com>,
kernel-team@android•com, linux-arm-kernel@lists•infradead.org,
beanhuo@micron•com
Subject: [PATCH v4 3/3] scsi: ufs-mediatek: enable auto suspend capability
Date: Mon, 16 Sep 2019 23:56:51 +0800 [thread overview]
Message-ID: <1568649411-5127-4-git-send-email-stanley.chu@mediatek.com> (raw)
In-Reply-To: <1568649411-5127-1-git-send-email-stanley.chu@mediatek.com>
Enable auto suspend capability in MediaTek UFS driver.
Signed-off-by: Stanley Chu <stanley.chu@mediatek•com>
Reviewed-by: Avri Altman <avri.altman@wdc•com>
---
drivers/scsi/ufs/ufs-mediatek.c | 3 +++
1 file changed, 3 insertions(+)
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
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-09-16 15:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-16 15:56 [PATCH v4 0/3] scsi: core: allow auto suspend override by low-level driver Stanley Chu
2019-09-16 15:56 ` [PATCH v4 1/3] " Stanley Chu
2019-09-16 15:56 ` [PATCH v4 2/3] scsi: ufs: override auto suspend tunables for ufs Stanley Chu
2019-09-16 15:56 ` Stanley Chu [this message]
2019-10-01 3:01 ` [PATCH v4 0/3] scsi: core: allow auto suspend override by low-level driver Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1568649411-5127-4-git-send-email-stanley.chu@mediatek.com \
--to=stanley.chu@mediatek$(echo .)com \
--cc=alim.akhtar@samsung$(echo .)com \
--cc=andy.teng@mediatek$(echo .)com \
--cc=avri.altman@wdc$(echo .)com \
--cc=beanhuo@micron$(echo .)com \
--cc=bvanassche@acm$(echo .)org \
--cc=chun-hung.wu@mediatek$(echo .)com \
--cc=evgreen@chromium$(echo .)org \
--cc=jejb@linux$(echo .)ibm.com \
--cc=kernel-team@android$(echo .)com \
--cc=kuohong.wang@mediatek$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-mediatek@lists$(echo .)infradead.org \
--cc=linux-scsi@vger$(echo .)kernel.org \
--cc=marc.w.gonzalez@free$(echo .)fr \
--cc=martin.petersen@oracle$(echo .)com \
--cc=matthias.bgg@gmail$(echo .)com \
--cc=pedrom.sousa@synopsys$(echo .)com \
--cc=peter.wang@mediatek$(echo .)com \
--cc=sthumma@codeaurora$(echo .)org \
--cc=subhashj@codeaurora$(echo .)org \
--cc=vivek.gautam@codeaurora$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox