summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Polimera <quic_vpolimer@quicinc.com>2023-03-02 19:33:17 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2023-03-13 04:43:50 +0300
commit1844e680d56bb0c4e0489138f2b7ba2dc1c988e3 (patch)
tree61b12594d0e8158b0d19153a252029d7da616644
parentf7e0b3c292ec4cc7996b383e9766e843e2a5e2a5 (diff)
downloadlinux-1844e680d56bb0c4e0489138f2b7ba2dc1c988e3.tar.xz
drm/msm/dp: set self refresh aware based on PSR support
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>
-rw-r--r--drivers/gpu/drm/msm/dp/dp_drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c
index 029e08c5bb06..785d76639497 100644
--- a/drivers/gpu/drm/msm/dp/dp_drm.c
+++ b/drivers/gpu/drm/msm/dp/dp_drm.c
@@ -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;