Skip to content

Commit a2c07d7

Browse files
Jinjie RuanSasha Levin
authored andcommitted
i3c: master: svc: Fix pm_runtime_set_suspended() with runtime pm enabled
commit 18599e9 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ad9dc4a commit a2c07d7

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
@@ -1639,8 +1639,8 @@ static int svc_i3c_master_probe(struct platform_device *pdev)
16391639
rpm_disable:
16401640
pm_runtime_dont_use_autosuspend(&pdev->dev);
16411641
pm_runtime_put_noidle(&pdev->dev);
1642-
pm_runtime_set_suspended(&pdev->dev);
16431642
pm_runtime_disable(&pdev->dev);
1643+
pm_runtime_set_suspended(&pdev->dev);
16441644

16451645
err_disable_clks:
16461646
svc_i3c_master_unprepare_clks(master);

0 commit comments

Comments
 (0)