فهرست منبع

disp: msm: dp: update debug message for mst conn id debug node

Incorrect debug message is printed when mst con id is set to
the desired conn value. This change skips printing debug
message during this scenario.

Change-Id: Ia7161ff2e7b8fba2da9757360d0c756cbe5ef166
Signed-off-by: Sandeep Gangadharaiah <[email protected]>
Sandeep Gangadharaiah 2 سال پیش
والد
کامیت
6493a3623a
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      msm/dp/dp_debug.c

+ 4 - 4
msm/dp/dp_debug.c

@@ -544,14 +544,14 @@ static ssize_t dp_debug_write_mst_con_id(struct file *file,
 
 	debug->mst_con_id = con_id;
 
+	if (status == connector_status_unknown)
+		goto out;
+
 	if (status == connector_status_connected)
 		DP_INFO("plug mst connector %d\n", con_id);
-	else
+	else if (status == connector_status_disconnected)
 		DP_INFO("unplug mst connector %d\n", con_id);
 
-	if (status == connector_status_unknown)
-		goto out;
-
 	mst_port = sde_conn->mst_port;
 	dp_panel = sde_conn->drv_panel;