]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: OLED panel backlight adjust not work with external display connected
authorhersen wu <hersenxs.wu@amd.com>
Mon, 22 Jun 2020 17:29:16 +0000 (13:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jul 2020 18:34:16 +0000 (14:34 -0400)
commitec11fe3705a7d434ec3493bdaddb9b6367e7366a
tree699c1b5430396fc4b63c6719503ef715245f331f
parent1bdcc35f7767988d49e55c6e44b80da666067f8b
drm/amd/display: OLED panel backlight adjust not work with external display connected

[Why]
amdgpu_dm->backlight_caps is for single eDP only. the caps are upddated
for very connector. Real eDP caps will be overwritten by other external
display. For OLED panel, caps->aux_support is set to 1 for OLED pnael.
after external connected, caps+.aux_support is set to 0. This causes
OLED backlight adjustment not work.

[How]
within update_conector_ext_caps, backlight caps will be updated only for
eDP connector.

Cc: stable@vger.kernel.org
Signed-off-by: hersen wu <hersenxs.wu@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c