OSDN Git Service

drm/amd/display: Improvement for handling edp link training fails
authorJingwen Zhu <Jingwen.Zhu@amd.com>
Thu, 30 Mar 2023 08:38:59 +0000 (16:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Apr 2023 02:35:02 +0000 (22:35 -0400)
commite0cce122514ff76c3c986103c94de68fbb401949
tree03d24789bc1855e45f6758fcf42f7646147c6c9a
parent56d8ce9d8c17bea955b0c2551ee86149486890ae
drm/amd/display: Improvement for handling edp link training fails

[Why]
The eDP retrain will cause the DPCD 300 to be reset to default.
And cause the brightness can't be set correctly.

[How]
delete the call to edp panel power control in both
enable_link_output/disable_link_output entirely and
only call edp panel control in enable_link_dp and 
disable_link_dp once.

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Jingwen Zhu <Jingwen.Zhu@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/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/link/link_dpms.c