aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
diff options
context:
space:
mode:
authorKonrad Dybcio <[email protected]>2023-06-20 11:43:21 +0000
committerDmitry Baryshkov <[email protected]>2023-12-03 00:13:18 +0000
commit6ab502bc1cf3147ea1d8540d04b83a7a4cb6d1f1 (patch)
treeaf50913c0849204eb98ec4088c5bdfb0c1e3ee53 /drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
parentdrm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks (diff)
downloadkernel-6ab502bc1cf3147ea1d8540d04b83a7a4cb6d1f1.tar.gz
kernel-6ab502bc1cf3147ea1d8540d04b83a7a4cb6d1f1.zip
drm/msm/dsi: Enable runtime PM
Some devices power the DSI PHY/PLL through a power rail that we model as a GENPD. Enable runtime PM to make it suspendable. Signed-off-by: Konrad Dybcio <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/543352/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/phy/dsi_phy.c')
-rw-r--r--drivers/gpu/drm/msm/dsi/phy/dsi_phy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
index b6314bb66d2f..e49ebd9f6326 100644
--- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
+++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
@@ -691,6 +691,10 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)
return dev_err_probe(dev, PTR_ERR(phy->ahb_clk),
"Unable to get ahb clk\n");
+ ret = devm_pm_runtime_enable(&pdev->dev);
+ if (ret)
+ return ret;
+
/* PLL init will call into clk_register which requires
* register access, so we need to enable power and ahb clock.
*/