When MST becomes active, the initial HPD plug notification updates the SST connector state to connected.
However, the subsequent SST connector detect path reports disconnected while MST is enabled. This connected -> disconnected transition is then observed by the polling logic and may result in an unnecessary hotplug event. Set the SST connector state to disconnected immediately after MST is initialized so that the detect path does not introduce a transient state change. Signed-off-by: Yongxing Mou <[email protected]> --- drivers/gpu/drm/msm/dp/dp_display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 0e8181932c27..327777f5c95e 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -290,6 +290,10 @@ static void msm_dp_display_mst_enable(struct msm_dp_display_private *dp) } msm_dp->mst_active = true; + + scoped_guard(mutex, &msm_dp->connector->dev->mode_config.mutex) + msm_dp->connector->status = connector_status_disconnected; + msm_dp_mst_display_set_mgr_state(msm_dp, true); } -- 2.43.0
