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 <cl@rock-chips.com>
This commit is contained in:
Liang Chen
2021-09-15 10:21:58 +08:00
committed by Tao Huang
parent 954b859e88
commit 9c4bb7cf64

View File

@@ -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);