]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Fix programming backlight on OLED panels
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 28 Nov 2024 03:22:00 +0000 (21:22 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2024 23:34:48 +0000 (18:34 -0500)
commit1c0938620176f451b814e9611b5444cd272b2a65
tree396a195e503c47e8b482a4128707562b671f1797
parent0f15cbc203712ccad363611eded31a2c700f3974
drm/amd/display: Fix programming backlight on OLED panels

commit 38077562e059 ("drm/amd/display: Implement new
backlight_level_params structure") adjusted DC core to require
the backlight type to be programmed in the dc link when changing
brightness.  This isn't initialized in amdgpu_dm for OLED panels
though which broke brightness.

Explicitly initialize when aux support is enabled.

Reported-and-tested-by: Luke Jones <luke@ljones.dev>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3792
Fixes: 38077562e059 ("drm/amd/display: Implement new backlight_level_params structure")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Link: https://lore.kernel.org/r/20241128032200.2085398-1-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c