]> xenbits.xensource.com Git - people/jgross/linux.git/commitdiff
drm/msm/dp: set self refresh aware based on PSR support
authorVinod Polimera <quic_vpolimer@quicinc.com>
Thu, 2 Mar 2023 16:33:17 +0000 (22:03 +0530)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 13 Mar 2023 01:43:50 +0000 (04:43 +0300)
For the PSR to kick in, self_refresh_aware has to be set.
Initialize it based on the PSR support for the eDP interface.

Signed-off-by: Vinod Polimera <quic_vpolimer@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/524743/
Link: https://lore.kernel.org/r/1677774797-31063-15-git-send-email-quic_vpolimer@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_drm.c

index 029e08c5bb061397120b2ebdc6215f633fb13afe..785d76639497d9fbb4c11c75de0a505a40b6f8e8 100644 (file)
@@ -117,6 +117,8 @@ static int edp_bridge_atomic_check(struct drm_bridge *drm_bridge,
        if (WARN_ON(!conn_state))
                return -ENODEV;
 
+       conn_state->self_refresh_aware = dp->psr_supported;
+
        if (!conn_state->crtc || !crtc_state)
                return 0;