We still want to retry AUX transfers even when the connector is first
plugged in. Update the connector state before reading the DPDC to ensure
the AUX bus sees the most-recent state.

Fixes: d76271d22694 ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort 
Subsystem")
Signed-off-by: Sean Anderson <[email protected]>
---

(no changes since v1)

 drivers/gpu/drm/xlnx/zynqmp_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c
index 34ddbf98e81d..f39c78b08e6a 100644
--- a/drivers/gpu/drm/xlnx/zynqmp_dp.c
+++ b/drivers/gpu/drm/xlnx/zynqmp_dp.c
@@ -1697,6 +1697,7 @@ static enum drm_connector_status 
__zynqmp_dp_bridge_detect(struct zynqmp_dp *dp)
        }
 
        if (state & ZYNQMP_DP_INTERRUPT_SIGNAL_STATE_HPD) {
+               dp->status = connector_status_connected;
                ret = drm_dp_dpcd_read(&dp->aux, 0x0, dp->dpcd,
                                       sizeof(dp->dpcd));
                if (ret < 0) {
@@ -1711,7 +1712,6 @@ static enum drm_connector_status 
__zynqmp_dp_bridge_detect(struct zynqmp_dp *dp)
                                               drm_dp_max_lane_count(dp->dpcd),
                                               dp->num_lanes);
 
-               dp->status = connector_status_connected;
                return connector_status_connected;
        }
 
-- 
2.35.1.1320.gc452695387.dirty

Reply via email to