From: Abhinav Kumar <[email protected]>

The bridge detect function is only applicable for SST. In MST mode,
connector detection is handled by MST bridges. Skip detection for the
SST bridge when MST is active, matching the behavior of other DP MST
implementations.

Signed-off-by: Abhinav Kumar <[email protected]>
Signed-off-by: Yongxing Mou <[email protected]>
Reviewed-by: Dmitry Baryshkov <[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 71c5e6bef02f..21dadc2e6cdc 100644
--- a/drivers/gpu/drm/msm/dp/dp_display.c
+++ b/drivers/gpu/drm/msm/dp/dp_display.c
@@ -971,6 +971,10 @@ enum drm_connector_status msm_dp_bridge_detect(struct 
drm_bridge *bridge,
        priv = container_of(dp, struct msm_dp_display_private, msm_dp_display);
 
        guard(mutex)(&priv->plugged_lock);
+
+       if (dp->mst_active)
+               return status;
+
        ret = pm_runtime_resume_and_get(&dp->pdev->dev);
        if (ret) {
                DRM_ERROR("failed to pm_runtime_resume\n");

-- 
2.43.0

Reply via email to