浏览代码

disp: msm: dp: log the dp mst connector id information

Logging connector id will help debug the issues related to
DP MST stability and pre-merge tests. This change will log
the DP MST connector IDs modified during stability tests.

Change-Id: Ifaf8e319697a809b02c24c473acec8da521286e2
Signed-off-by: Sankeerth Billakanti <[email protected]>
Sankeerth Billakanti 4 年之前
父节点
当前提交
4cfef504ab
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      msm/dp/dp_debug.c

+ 6 - 0
msm/dp/dp_debug.c

@@ -537,6 +537,11 @@ static ssize_t dp_debug_write_mst_con_id(struct file *file,
 
 	debug->mst_con_id = con_id;
 
+	if (status == connector_status_connected)
+		DP_INFO("plug mst connector %d\n", con_id);
+	else
+		DP_INFO("unplug mst connector %d\n", con_id);
+
 	if (status == connector_status_unknown)
 		goto out;
 
@@ -550,6 +555,7 @@ static ssize_t dp_debug_write_mst_con_id(struct file *file,
 		dp_panel->mst_hide = (status == connector_status_disconnected);
 		drm_kms_helper_hotplug_event(connector->dev);
 	}
+
 out:
 	drm_connector_put(connector);
 	goto end;