Skip to content

Commit

Permalink
drm/msm/dsi: Enable runtime PM
Browse files Browse the repository at this point in the history
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 <[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]>
Signed-off-by: Amit Pundir <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
konradybcio authored and gregkh committed Feb 5, 2024
1 parent f9fd5a6 commit f65ab9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit f65ab9e

Please sign in to comment.