RE: [RFC PATCH 2/2] drm/msm/dp: enable pm_runtime support for dp driver

2023-03-01 Thread Sankeerth Billakanti (QUIC)
>> diff --git a/drivers/gpu/drm/msm/dp/dp_aux.c >> b/drivers/gpu/drm/msm/dp/dp_aux.c >[..] >> +static int dp_runtime_resume(struct device *dev) { >> +struct platform_device *pdev = to_platform_device(dev); >> +struct msm_dp *dp_display = platform_get_drvdata(pdev); >> +struct dp_display

Re: [RFC PATCH 2/2] drm/msm/dp: enable pm_runtime support for dp driver

2023-02-27 Thread Bjorn Andersson
On Thu, Feb 23, 2023 at 07:26:35PM +0530, Sankeerth Billakanti wrote: > diff --git a/drivers/gpu/drm/msm/dp/dp_aux.c b/drivers/gpu/drm/msm/dp/dp_aux.c [..] > +static int dp_runtime_resume(struct device *dev) > +{ > + struct platform_device *pdev = to_platform_device(dev); > + struct msm_dp

[RFC PATCH 2/2] drm/msm/dp: enable pm_runtime support for dp driver

2023-02-23 Thread Sankeerth Billakanti
The current DP driver directly enables or disables the necessary control resources based on code flow. This could disable a required resource that is needed in a different usecase. It can also lead to excessive voting of a resource and may increase power consumption. The pm_runtime framework can s