]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Only read ACPI backlight caps once
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 29 May 2025 16:33:44 +0000 (11:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:17 +0000 (12:19 -0400)
commit148144f6d2f14b02eaaa39b86bbe023cbff350bd
treea9bd053d635188ca19ecc9936ca4cc3614d6d7b6
parent11baa4975025033547f45f5894087a0dda6efbb8
drm/amd/display: Only read ACPI backlight caps once

[WHY]
Backlight caps are read already in amdgpu_dm_update_backlight_caps().
They may be updated by update_connector_ext_caps(). Reading again when
registering backlight device may cause wrong values to be used.

[HOW]
Use backlight caps already registered to the dm.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c