drm/bridge: analogix_dp: fix the disabling process of ASSR function

The DP_EDP_CONFIGURATION_SET should be configured instead of the
DP_LANE_COUNT_SET register to disable ASSR.

Fixes: 3ae279210e ("drm/bridge: analogix_dp: add support for ASSR mode")
Change-Id: I1dc36bd3dbfdeb09cde761c6905e22feba52558a
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
Damon Ding
2025-03-18 16:56:10 +08:00
committed by Tao Huang
parent bf69e15bdc
commit 3f74be339b

View File

@@ -355,7 +355,7 @@ static int analogix_dp_enable_sink_to_assr_mode(struct analogix_dp_device *dp, b
ret = drm_dp_dpcd_writeb(&dp->aux, DP_EDP_CONFIGURATION_SET,
data | DP_ALTERNATE_SCRAMBLER_RESET_ENABLE);
else
ret = drm_dp_dpcd_writeb(&dp->aux, DP_LANE_COUNT_SET,
ret = drm_dp_dpcd_writeb(&dp->aux, DP_EDP_CONFIGURATION_SET,
data & ~DP_ALTERNATE_SCRAMBLER_RESET_ENABLE);
return ret < 0 ? ret : 0;