]> git.baikalelectronics.ru Git - kernel.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 19:13:15 +0000 (15:13 -0400)
commit199eace23dd97daca599521c1afd187f6966cb2d
treea52ae7448c607eeb4c6a7ca1453cc467aa0669fd
parentb0f8fb7f64940c092427ca07f267b7ed9b89f2f8
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