drm/amd/display: avoid disable otg when dig was disabled
authorJingwen Zhu <Jingwen.Zhu@amd.com>
Fri, 13 Jan 2023 16:06:00 +0000 (00:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Feb 2023 22:35:55 +0000 (17:35 -0500)
commit3119668c0e0ac8d9ca13c56b4298c28294e2643a
tree4061c3f785a0f62e17504101b20a782448a5a9b3
parent2bce0f9bfe6aaed7de9adf3d581321c44c3f4729
drm/amd/display: avoid disable otg when dig was disabled

[Why]
This is a workaround for an dcn3.15 hang
that happens if otg dispclk is ramped while
otg is on and stream enc is off. But this
w/a should not trigger when we have a dig active.

[How]
Avoid disable otg when dig was disabled.

[Note]
Reapplying commit b07bb766b6d5 ("drm/amd/display: avoid disable otg when dig was disabled")
which was incorrectly reverted.

Reviewed-by: Josip Pavic <Josip.Pavic@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Jingwen Zhu <Jingwen.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c