]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Reset input mode for DIG on encoder reset
authorDillon Varone <dillon.varone@amd.com>
Wed, 24 Apr 2024 20:39:49 +0000 (16:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:03 +0000 (15:17 -0400)
[WHY & HOW]
Make enable and disable sequences symmetric.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c

index 16412094c61279a9a4c9576d838544978ce5b5fd..afe4614e0087027952750131bd8faa74cc379b14 100644 (file)
@@ -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,