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

Commit 38be1681 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Tatenda Chipeperekwa
Browse files

drm/msm/dp: handle DisplayPort ON/OFF during PM suspend/resume



Add changes in the DisplayPort ON/OFF path and the HPD notification
path to handle PM suspend/resume and adb shell stop/start use-cases
which are not driven by HPD events.

Change-Id: Iedccae9104eb8937d1fd5f4ce958ad5818a2c3ff
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent d213c826
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -930,7 +930,7 @@ static void dp_display_connect_work(struct work_struct *work)
	struct dp_display_private *dp = container_of(dw,
			struct dp_display_private, connect_work);

	if (dp->dp_display.is_connected) {
	if (dp->dp_display.is_connected && dp_display_framework_ready(dp)) {
		pr_debug("HPD already on\n");
		return;
	}
@@ -1255,6 +1255,11 @@ static int dp_display_enable(struct dp_display *dp_display, void *panel)

	dp->aux->init(dp->aux, dp->parser->aux_cfg);

	if (dp->debug->psm_enabled) {
		dp->link->psm_config(dp->link, &dp->panel->link_info, false);
		dp->debug->psm_enabled = false;
	}

	rc = dp->ctrl->on(dp->ctrl, dp->mst.mst_active);
	if (!rc)
		dp->power_on = true;
@@ -1433,7 +1438,6 @@ static int dp_display_disable(struct dp_display *dp_display, void *panel)
	if (dp->usbpd->hpd_high && !dp_display_is_sink_count_zero(dp) &&
			dp->usbpd->alt_mode_cfg_done && !dp->mst.mst_active) {
		dp_display->post_open = dp_display_post_open;
		dp->dp_display.is_connected = false;
		dp->dp_display.is_sst_connected = false;
	}