From 9c4bb7cf644e7237b91a06d960ea8612e2e5ca06 Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Wed, 15 Sep 2021 10:21:58 +0800 Subject: [PATCH] mmc: dw_mmc-rockchip: set default pm_runtime status to active pm_runtime_force_suspend/pm_runtime_force_resume will not work if the device is in suspend when pm_runtime is disabled. Change-Id: I7179ecab2b059b43fab6d84683e52ae5c21096ae Signed-off-by: Liang Chen --- drivers/mmc/host/dw_mmc-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc-rockchip.c b/drivers/mmc/host/dw_mmc-rockchip.c index ac2ef5ea0c8d..265a1d7426a7 100644 --- a/drivers/mmc/host/dw_mmc-rockchip.c +++ b/drivers/mmc/host/dw_mmc-rockchip.c @@ -416,9 +416,9 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev) * pm_runtime_force_resume calls rpm resume callback */ pm_runtime_get_noresume(&pdev->dev); + pm_runtime_set_active(&pdev->dev); if (use_rpm) { - pm_runtime_set_active(&pdev->dev); pm_runtime_enable(&pdev->dev); pm_runtime_set_autosuspend_delay(&pdev->dev, 50); pm_runtime_use_autosuspend(&pdev->dev);