瀏覽代碼

disp: msm: dp: send hpd notification before updating mst_active

When processing mst hpd low, the driver is clearing mst_active before
triggering hpd notification. The hpd notifier is common for both
sst and mst and since mst_active is cleared it incorrectly treats
this as sst unplug.

This change switches the order of these operations to trigger hpd
notification before clearing mst_active.

Change-Id: I28f90da699e4f2fe177a4e4cfd1d9f03957c3176
Signed-off-by: Rajkumar Subbiah <[email protected]>
Rajkumar Subbiah 4 年之前
父節點
當前提交
f8a75153b7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      msm/dp/dp_display.c

+ 2 - 2
msm/dp/dp_display.c

@@ -1250,12 +1250,12 @@ static void dp_display_process_mst_hpd_low(struct dp_display_private *dp)
 		if (dp->mst.cbs.hpd)
 			dp->mst.cbs.hpd(&dp->dp_display, false);
 
-		dp_display_update_mst_state(dp, false);
-
 		if ((dp_display_state_is(DP_STATE_CONNECT_NOTIFIED) ||
 				dp_display_state_is(DP_STATE_ENABLED)))
 			rc = dp_display_send_hpd_notification(dp);
 
+		dp_display_update_mst_state(dp, false);
+
 		if (dp->mst.cbs.set_mgr_state) {
 			info.mst_protocol = dp->parser->has_mst_sideband;
 			dp->mst.cbs.set_mgr_state(&dp->dp_display, false,