Re: [PATCH 26/45] drm/msm/dp: replace power_on with active_stream_cnt for dp_display

From: Dmitry Baryshkov
Date: Sun Dec 08 2024 - 06:50:55 EST


On Thu, Dec 05, 2024 at 08:31:57PM -0800, Abhinav Kumar wrote:
> For DP MST, the link clock and power domain resources stay on until
> both streams have been disabled OR we receive hotplug. Introduce an
> active_stream_cnt to track the number of active streams and necessary
> state handling. Replace the power_on variable with active_stream_cnt
> as power_on boolean works only for a single stream.

Okay, this answers one of my previous questions. Swapping these two
patches might be beneficial.

For this patch:

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>


>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@xxxxxxxxxxx>
> ---
> drivers/gpu/drm/msm/dp/dp_audio.c | 2 +-
> drivers/gpu/drm/msm/dp/dp_display.c | 42 ++++++++++++++++++++++++-------------
> drivers/gpu/drm/msm/dp/dp_display.h | 3 ++-
> 3 files changed, 31 insertions(+), 16 deletions(-)
>

--
With best wishes
Dmitry