drm/amd/display: Avoid trying AUX transactions on disconnected ports

[ Upstream commit deb24e64c8881c462b29e2c69afd9e6669058be5 ]

[Why & How]
Observe that we try to access DPCD 0x600h of disconnected DP ports.
In order not to wasting time on retrying these ports, call
dpcd_write_rx_power_ctrl() after checking its connection status.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Wayne Lin
2025-05-13 16:06:50 +08:00
committed by Greg Kroah-Hartman
parent d02ee5eebb
commit 39de3ce656

View File

@@ -137,7 +137,8 @@ void link_blank_dp_stream(struct dc_link *link, bool hw_init)
}
}
if ((!link->wa_flags.dp_keep_receiver_powered) || hw_init)
if (((!link->wa_flags.dp_keep_receiver_powered) || hw_init) &&
(link->type != dc_connection_none))
dpcd_write_rx_power_ctrl(link, false);
}
}