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 19:13:15 +0000 (15:13 -0400)
commitb448d30b0c303d5454ea572b772d1ffae96bc6e7
treea52ae7448c607eeb4c6a7ca1453cc467aa0669fd
parent3168470142e0a82b5732c04ed4c031a9322ae170
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