drm/amd/display: turn off eDP lcdvdd and backlight if not required
authorCharlene Liu <Charlene.Liu@amd.com>
Wed, 26 Mar 2025 09:11:35 +0000 (17:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 22:01:08 +0000 (18:01 -0400)
commit0d93e821867c2a6edcd15317311dcb99f7a16887
treec74ce7a7a7ebf76ab4446b6c7c9d77bac1b5de03
parent32be4e39f459f3ac9c191569ae8e3731cb82f7ab
drm/amd/display: turn off eDP lcdvdd and backlight if not required

[why]
A+N configuration, eDP on A-APU is off, extended display active.
Resume from s4, eDP's backlight is still on.

[how]
Turn off inactive eDP backlight and lcdvdd.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Jing Zhou <Jing.Zhou@amd.com>
Signed-off-by: Roman Li <roman.li@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/core/dc.c
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c