From 8fa5e65d702bf18d62c3278bf5d2fa7dd576a01e Mon Sep 17 00:00:00 2001 From: Samantha Tran Date: Mon, 16 Sep 2019 10:47:44 -0700 Subject: [PATCH] disp: msm: sde: avoid plane update if crtc inactive This change passes DRM_PLANE_COMMIT_ACTIVE_ONLY during drm_atomic_helper_commit_planes in complete commit. Passing this flag insures that if crtc is inactive, plane update will not be made. This avoids trying to commit a plane while entering low power mode when crtc and encoder are already disabled. Change-Id: Ic08a4f42cf832709332ccbf4a9df39342f858eec Signed-off-by: Samantha Tran --- msm/msm_atomic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/msm_atomic.c b/msm/msm_atomic.c index 340c515cf4f8..b03af2adbc9f 100644 --- a/msm/msm_atomic.c +++ b/msm/msm_atomic.c @@ -535,7 +535,8 @@ static void complete_commit(struct msm_commit *c) msm_atomic_helper_commit_modeset_disables(dev, state); - drm_atomic_helper_commit_planes(dev, state, 0); + drm_atomic_helper_commit_planes(dev, state, + DRM_PLANE_COMMIT_ACTIVE_ONLY); msm_atomic_helper_commit_modeset_enables(dev, state);