From 6493a3623ae7d529b6d935a203564ed943c89c54 Mon Sep 17 00:00:00 2001 From: Sandeep Gangadharaiah Date: Tue, 26 Jul 2022 10:10:03 -0400 Subject: [PATCH] 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 --- msm/dp/dp_debug.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/msm/dp/dp_debug.c b/msm/dp/dp_debug.c index c71a468ee2..75b5e0ff87 100644 --- a/msm/dp/dp_debug.c +++ b/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_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; + if (status == connector_status_connected) + DP_INFO("plug mst connector %d\n", con_id); + else if (status == connector_status_disconnected) + DP_INFO("unplug mst connector %d\n", con_id); + mst_port = sde_conn->mst_port; dp_panel = sde_conn->drv_panel;