From: Dillon Varone Date: Wed, 24 Apr 2024 20:39:49 +0000 (-0400) Subject: drm/amd/display: Reset input mode for DIG on encoder reset X-Git-Tag: io_uring-6.11-20240722~49^2~25^2~330 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5b600c1f49962c1dbc62719916bf47c791ac0777;p=linux-block.git drm/amd/display: Reset input mode for DIG on encoder reset [WHY & HOW] Make enable and disable sequences symmetric. Reviewed-by: Wenjing Liu Acked-by: Tom Chung Signed-off-by: Dillon Varone Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c b/drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c index 16412094c612..afe4614e0087 100644 --- a/drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c +++ b/drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c @@ -63,6 +63,8 @@ void reset_dio_stream_encoder(struct pipe_ctx *pipe_ctx) if (stream_enc && stream_enc->funcs->disable_fifo) stream_enc->funcs->disable_fifo(stream_enc); + if (stream_enc->funcs->set_input_mode) + stream_enc->funcs->set_input_mode(stream_enc, 0); link_enc->funcs->connect_dig_be_to_fe( link_enc,