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

Commit 3db30dda authored by Vara Reddy's avatar Vara Reddy Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: send proper primary flag to connector



Correct is_primary flag sent to connectors after checking the
display panel primary status for external bridge configurations.

Change-Id: I94c2fe59581ba741df67182835bba2277b3dc5e3
Signed-off-by: default avatarVara Reddy <varar@codeaurora.org>
parent eaff0dd3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4944,7 +4944,12 @@ static int dsi_display_ext_get_info(struct drm_connector *connector,
		info->h_tile_instance[i] = display->ctrl[i].ctrl->cell_index;

	info->is_connected = connector->status != connector_status_disconnected;

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

	info->capabilities |= (MSM_DISPLAY_CAP_VID_MODE |
		MSM_DISPLAY_CAP_EDID | MSM_DISPLAY_CAP_HOT_PLUG);