Re: [PATCH for-v6.1.y+] drm/msm/dsi: Enable runtime PM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dienstag, 30. Jänner 2024 14:46:47 CET Amit Pundir wrote:
> From: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx>
> 
> [ Upstream commit 6ab502bc1cf3147ea1d8540d04b83a7a4cb6d1f1 ]
> 
> 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@xxxxxxxxxx>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
> Patchwork: https://patchwork.freedesktop.org/patch/543352/
> Link:
> https://lore.kernel.org/r/20230620-topic-dsiphy_rpm-v2-2-a11a751f34f0@linar
> o.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
> Stable-dep-of: 3d07a411b4fa ("drm/msm/dsi: Use pm_runtime_resume_and_get to
> prevent refcnt leaks") Signed-off-by: Amit Pundir <amit.pundir@xxxxxxxxxx>
> ---
> Fixes display regression on DB845c running v6.1.75, v6.6.14 and v6.7.2.

Can confirm this fixes display on qcom-msm8226 on v6.7.2.

Not sure if it's appropriate for -stable but:

Tested-by: Luca Weiss <luca@xxxxxxxxx>

Regards
Luca

> 
>  drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
> b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c index 62bc3756f2e2..c0bcf020ef66
> 100644
> --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
> +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
> @@ -673,6 +673,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.
>  	 */









[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux