mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02: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:
parent
954b859e88
commit
9c4bb7cf64
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user