drm/amd/display: Fix incorrect DPCD configs while Replay/PSR switch
authorLeon Huang <Leon.Huang1@amd.com>
Tue, 11 Feb 2025 07:45:43 +0000 (15:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:23:25 +0000 (13:23 -0400)
commit0d9cabc8f591ea1cd97c071b853b75b155c13259
tree2d47f0e7ff06dd1bfb11f3f06d6cc955772d345e
parented962f8d0603da15c26f1c9ce60cba42607a2768
drm/amd/display: Fix incorrect DPCD configs while Replay/PSR switch

[Why]
When switching between PSR/Replay,
the DPCD config of previous mode is not cleared,
resulting in unexpected behavior in TCON.

[How]
Initialize the DPCD in setup function

Reviewed-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Leon Huang <Leon.Huang1@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@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/protocols/link_edp_panel_control.c