drm/amd/display: Don't register panel_power_savings on OLED panels
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 9 May 2024 17:05:24 +0000 (12:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:12:02 +0000 (16:12 -0400)
commit76cb763e6ea62e838ccc8f7a1ea4246d690fccc9
treed338ed38cf44bf4707d394cd589870e1f59fcd30
parente6ae021adb79e5f4c4bc4362dd651d7b8b646340
drm/amd/display: Don't register panel_power_savings on OLED panels

OLED panels don't support the ABM, they shouldn't offer the
panel_power_savings attribute to the user. Check whether aux BL
control support was enabled to decide whether to offer it.

Reported-by: Gergo Koteles <soyer@irl.hu>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3359
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Tested-by: Gergo Koteles <soyer@irl.hu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c