Skip to content

Commit 18599e9

Browse files
Jinjie Ruanalexandrebelloni
authored andcommitted
i3c: master: svc: Fix pm_runtime_set_suspended() with runtime pm enabled
It is not valid to call pm_runtime_set_suspended() for devices with runtime PM enabled because it returns -EAGAIN if it is enabled already and working. So, call pm_runtime_disable() before to fix it. Cc: [email protected] # v5.17 Fixes: 05be23e ("i3c: master: svc: add runtime pm support") Reviewed-by: Frank Li <[email protected]> Reviewed-by: Miquel Raynal <[email protected]> Signed-off-by: Jinjie Ruan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 45357c9 commit 18599e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/master/svc-i3c-master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,8 +1891,8 @@ static int svc_i3c_master_probe(struct platform_device *pdev)
18911891
rpm_disable:
18921892
pm_runtime_dont_use_autosuspend(&pdev->dev);
18931893
pm_runtime_put_noidle(&pdev->dev);
1894-
pm_runtime_set_suspended(&pdev->dev);
18951894
pm_runtime_disable(&pdev->dev);
1895+
pm_runtime_set_suspended(&pdev->dev);
18961896

18971897
err_disable_clks:
18981898
svc_i3c_master_unprepare_clks(master);

0 commit comments

Comments
 (0)