From 0883cdf7be28f9a27494a2fd1e748dfe384fec24 Mon Sep 17 00:00:00 2001 From: Soutrik Mukhopadhyay Date: Wed, 12 Apr 2023 14:54:41 +0530 Subject: [PATCH] disp: msm: dp: clear link info capabilities during DP disconnect This change clears all link info capabilities as a part of panel deinitialisation during a disconnect sequence. Without this change, the link info capabilities like the CRC flag will be retained for the next hotplugged device. Now if, a MST is connected after a SST connection, the base panel will have the CRC value of the previous sink, which will be invalid for the case when the hub doesn't support CRC. Change-Id: I3a820070fd5006a707328b4d192893a465c04448 Signed-off-by: Soutrik Mukhopadhyay --- msm/dp/dp_panel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/msm/dp/dp_panel.c b/msm/dp/dp_panel.c index 16caf232c7..b2f37966c9 100644 --- a/msm/dp/dp_panel.c +++ b/msm/dp/dp_panel.c @@ -2388,6 +2388,9 @@ static int dp_panel_deinit_panel_info(struct dp_panel *dp_panel, u32 flags) shdr_if_sdp = &panel->catalog->shdr_if_sdp; vsc_colorimetry = &panel->catalog->vsc_colorimetry; + /*clearing LINK INFO capabilities during disconnect*/ + dp_panel->link_info.capabilities = 0; + if (dp_panel->edid_ctrl->edid) sde_free_edid((void **)&dp_panel->edid_ctrl);