mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user