Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e40a8cb5 authored by Lei Chen's avatar Lei Chen Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: sde: Get connector roi state even when PU is 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, added this change to get connector roi state even if
partial update is disabled.

Change-Id: Iebb1d001c1c11b659141ce301400704c16390ee6
Signed-off-by: default avatarLei Chen <chenlei@codeaurora.org>
parent 78bed541
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1263,9 +1263,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);

@@ -1275,6 +1272,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