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

Commit a4114769 authored by Kalyan Thota's avatar Kalyan Thota Committed by Ajay Singh Parmar
Browse files

drm/msm/sde: populate primary display flag



In case of multiple encoders and DSI controllers topology,
update the corresponding display information with primary
flag so that user modules are correctly updated.

CRs-Fixed: 2254681
Change-Id: Ia1e4afda9e41466407fba3ad324e7dbf80b2e08c
Signed-off-by: default avatarKalyan Thota <kalyant@codeaurora.org>
parent 3ef19c0b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5169,7 +5169,11 @@ int dsi_display_get_info(struct drm_connector *connector,
		info->h_tile_instance[i] = display->ctrl[i].ctrl->cell_index;

	info->is_connected = true;
	info->is_primary = false;

	if (!strcmp(display->display_type, "primary"))
		info->is_primary = true;

	info->width_mm = phy_props.panel_width_mm;
	info->height_mm = phy_props.panel_height_mm;
	info->max_width = 1920;
+1 −0
Original line number Diff line number Diff line
@@ -4331,6 +4331,7 @@ void sde_encoder_kickoff(struct drm_encoder *drm_enc, bool is_error)
	}

	if (sde_enc->disp_info.intf_type == DRM_MODE_CONNECTOR_DSI &&
			sde_enc->disp_info.is_primary &&
			!_sde_encoder_wakeup_time(drm_enc, &wakeup_time)) {
		SDE_EVT32_VERBOSE(ktime_to_ms(wakeup_time));
		mod_timer(&sde_enc->vsync_event_timer,