drm/amd/display: Fix encoder disable logic
authorNicholas Susanto <nicholas.susanto@amd.com>
Wed, 1 Nov 2023 19:30:10 +0000 (15:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 05:55:17 +0000 (00:55 -0500)
commit0ee057e66c4b782809a0a9265cdac5542e646706
treeacc09c7401f158c5f514ec863956d0d734797ada
parent5911d02cac70d7fb52009fbd37423e63f8f6f9bc
drm/amd/display: Fix encoder disable logic

[WHY]
DENTIST hangs when OTG is off and encoder is on. We were not
disabling the encoder properly when switching from extended mode to
external monitor only.

[HOW]
Disable the encoder using an existing enable/disable fifo helper instead
of enc35_stream_encoder_enable.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Nicholas Susanto <nicholas.susanto@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/dcn35/dcn35_dio_stream_encoder.c