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

Commit ef6b1f5c authored by Fuad Hossain's avatar Fuad Hossain Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dp: maintain the connector to encoder link during suspend/resume



Avoid disconnecting the connector to encoder link
during suspend in order to maintain the same
connector to encoder state during the resume.

CRs-Fixed: 2327801
Change-Id: I2164c3a9b0e2ecc14c3bb12a53e5da3b2f259212
Signed-off-by: default avatarFuad Hossain <fhossain@codeaurora.org>
parent 9c97fa17
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -812,10 +812,13 @@ static void dp_mst_bridge_post_disable(struct drm_bridge *drm_bridge)
		pr_info("[%d] DP display unprepare failed, rc=%d\n",
		       bridge->id, rc);

	/* maintain the connector to encoder link during suspend/resume */
	if (mst->state != PM_SUSPEND) {
		/* Disconnect the connector and panel info from bridge */
		mst->mst_bridge[bridge->id].connector = NULL;
		mst->mst_bridge[bridge->id].dp_panel = NULL;
		mst->mst_bridge[bridge->id].encoder_active_sts = false;
	}

	DP_MST_DEBUG("mst bridge [%d] post disable complete\n", bridge->id);
}