Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 7081c14

Browse files
konradybcioTreehugger Robot
authored andcommitted
UPSTREAM: drm/msm/dsi: Enable runtime PM
commit 6ab502b upstream. 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 <konrad.dybcio@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/543352/ Link: https://lore.kernel.org/r/20230620-topic-dsiphy_rpm-v2-2-a11a751f34f0@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 146449535 Change-Id: I7cde481b64be594e5b4aa7fe7d9378d25f2e39b3 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
1 parent 6854cfa commit 7081c14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,10 @@ static int dsi_phy_driver_probe(struct platform_device *pdev)
691691
return dev_err_probe(dev, PTR_ERR(phy->ahb_clk),
692692
"Unable to get ahb clk\n");
693693

694+
ret = devm_pm_runtime_enable(&pdev->dev);
695+
if (ret)
696+
return ret;
697+
694698
/* PLL init will call into clk_register which requires
695699
* register access, so we need to enable power and ahb clock.
696700
*/

0 commit comments

Comments
 (0)