From 3d1b73abc6fb7eff75e2c9d767e8a03b52930cd4 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Tue, 20 Aug 2019 21:30:38 +0800 Subject: [PATCH] disp: msm: sde: Get connector roi state even PU disabled Partial update will be disabled while panel operating mode switch from command to video. Display validation will be failed once CRTC and connector ROI state are not the same. So add this change to get connector roi state even partial update is disabled. Change-Id: Iebb1d001c1c11b659141ce301400704c16390ee6 Signed-off-by: Lei Chen --- msm/sde/sde_crtc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/msm/sde/sde_crtc.c b/msm/sde/sde_crtc.c index f0917f150787..bbabd064c064 100644 --- a/msm/sde/sde_crtc.c +++ b/msm/sde/sde_crtc.c @@ -729,9 +729,6 @@ static int _sde_crtc_set_crtc_roi(struct drm_crtc *crtc, return -EINVAL; } - if (!mode_info.roi_caps.enabled) - continue; - sde_conn = to_sde_connector(conn_state->connector); sde_conn_state = to_sde_connector_state(conn_state); @@ -741,6 +738,9 @@ static int _sde_crtc_set_crtc_roi(struct drm_crtc *crtc, &sde_conn_state->property_state, CONNECTOR_PROP_ROI_V1); + if (!mode_info.roi_caps.enabled) + continue; + /* * current driver only supports same connector and crtc size, * but if support for different sizes is added, driver needs