* [PATCH] mmc: mediatek: Add MMC_CAP_RUNTIME_RESUME support
@ 2015-09-22 6:00 Chaotian Jing
2015-09-23 21:42 ` Ulf Hansson
0 siblings, 1 reply; 2+ messages in thread
From: Chaotian Jing @ 2015-09-22 6:00 UTC (permalink / raw)
To: linux-arm-kernel
Add MMC_CAP_RUNTIME_RESUME support to save resume time
Drop unnecessary SDC_ARG write
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
---
drivers/mmc/host/mtk-sd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 7153500..b2e89d3 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -729,7 +729,6 @@ static bool msdc_cmd_done(struct msdc_host *host, int events,
MSDC_INTEN_RSPCRCERR | MSDC_INTEN_CMDTMO |
MSDC_INTEN_ACMDRDY | MSDC_INTEN_ACMDCRCERR |
MSDC_INTEN_ACMDTMO);
- writel(cmd->arg, host->base + SDC_ARG);
if (cmd->flags & MMC_RSP_PRESENT) {
if (cmd->flags & MMC_RSP_136) {
@@ -1302,6 +1301,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
mmc->f_min = host->src_clk_freq / (4 * 255);
mmc->caps |= MMC_CAP_ERASE | MMC_CAP_CMD23;
+ mmc->caps |= MMC_CAP_RUNTIME_RESUME;
/* MMC core transfer sizes tunable parameters */
mmc->max_segs = MAX_BD_NUM;
mmc->max_seg_size = BDMA_DESC_BUFLEN;
--
1.8.1.1.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] mmc: mediatek: Add MMC_CAP_RUNTIME_RESUME support
2015-09-22 6:00 [PATCH] mmc: mediatek: Add MMC_CAP_RUNTIME_RESUME support Chaotian Jing
@ 2015-09-23 21:42 ` Ulf Hansson
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2015-09-23 21:42 UTC (permalink / raw)
To: linux-arm-kernel
On 22 September 2015 at 08:00, Chaotian Jing <chaotian.jing@mediatek.com> wrote:
> Add MMC_CAP_RUNTIME_RESUME support to save resume time
> Drop unnecessary SDC_ARG write
>
> Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Thanks, applied for next!
Kind regards
Uffe
> ---
> drivers/mmc/host/mtk-sd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
> index 7153500..b2e89d3 100644
> --- a/drivers/mmc/host/mtk-sd.c
> +++ b/drivers/mmc/host/mtk-sd.c
> @@ -729,7 +729,6 @@ static bool msdc_cmd_done(struct msdc_host *host, int events,
> MSDC_INTEN_RSPCRCERR | MSDC_INTEN_CMDTMO |
> MSDC_INTEN_ACMDRDY | MSDC_INTEN_ACMDCRCERR |
> MSDC_INTEN_ACMDTMO);
> - writel(cmd->arg, host->base + SDC_ARG);
>
> if (cmd->flags & MMC_RSP_PRESENT) {
> if (cmd->flags & MMC_RSP_136) {
> @@ -1302,6 +1301,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
> mmc->f_min = host->src_clk_freq / (4 * 255);
>
> mmc->caps |= MMC_CAP_ERASE | MMC_CAP_CMD23;
> + mmc->caps |= MMC_CAP_RUNTIME_RESUME;
> /* MMC core transfer sizes tunable parameters */
> mmc->max_segs = MAX_BD_NUM;
> mmc->max_seg_size = BDMA_DESC_BUFLEN;
> --
> 1.8.1.1.dirty
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-23 21:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 6:00 [PATCH] mmc: mediatek: Add MMC_CAP_RUNTIME_RESUME support Chaotian Jing
2015-09-23 21:42 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).