瀏覽代碼

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;
 	debug->mst_con_id = con_id;
 
 
+	if (status == connector_status_unknown)
+		goto out;
+
 	if (status == connector_status_connected)
 	if (status == connector_status_connected)
 		DP_INFO("plug mst connector %d\n", con_id);
 		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);
 		DP_INFO("unplug mst connector %d\n", con_id);
 
 
-	if (status == connector_status_unknown)
-		goto out;
-
 	mst_port = sde_conn->mst_port;
 	mst_port = sde_conn->mst_port;
 	dp_panel = sde_conn->drv_panel;
 	dp_panel = sde_conn->drv_panel;