From 4cfef504ab58dfcbd5906e2ef2d770b01a2d9554 Mon Sep 17 00:00:00 2001 From: Sankeerth Billakanti Date: Sun, 20 Dec 2020 14:27:00 +0530 Subject: [PATCH] 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 --- msm/dp/dp_debug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/msm/dp/dp_debug.c b/msm/dp/dp_debug.c index e0cbaaf0ba..9d80480086 100644 --- a/msm/dp/dp_debug.c +++ b/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;