From: Johan Hovold Date: Tue, 18 Jul 2023 13:28:55 +0000 (+0200) Subject: clk: qcom: camcc-sc7180: fix async resume during probe X-Git-Tag: v6.6.17~4060^2^2~1^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c948ff727e25297f3a703eb5349dd66aabf004e4;p=platform%2Fkernel%2Flinux-rpi.git clk: qcom: camcc-sc7180: fix async resume during probe To make sure that the controller is runtime resumed and its power domain is enabled before accessing its registers during probe, the synchronous runtime PM interface must be used. Fixes: 8d4025943e13 ("clk: qcom: camcc-sc7180: Use runtime PM ops instead of clk ones") Cc: stable@vger.kernel.org # 5.11 Cc: Stephen Boyd Signed-off-by: Johan Hovold Link: https://lore.kernel.org/r/20230718132902.21430-2-johan+linaro@kernel.org Signed-off-by: Bjorn Andersson --- diff --git a/drivers/clk/qcom/camcc-sc7180.c b/drivers/clk/qcom/camcc-sc7180.c index 8a4ba7a..6f56bdb 100644 --- a/drivers/clk/qcom/camcc-sc7180.c +++ b/drivers/clk/qcom/camcc-sc7180.c @@ -1664,7 +1664,7 @@ static int cam_cc_sc7180_probe(struct platform_device *pdev) return ret; } - ret = pm_runtime_get(&pdev->dev); + ret = pm_runtime_resume_and_get(&pdev->dev); if (ret) return ret;