drm/amd/display: add panel_power_savings sysfs entry to eDP connectors
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Fri, 26 Jan 2024 21:27:10 +0000 (16:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Feb 2024 17:25:09 +0000 (12:25 -0500)
commit63d0b87213a0ba241b3fcfba3fe7b0aed0cd1cc5
tree7d8def95904a87242f1c2c05a3521912ba73d65f
parentaeaf3e6cf84282500b6fa03621b0c225ce1af18a
drm/amd/display: add panel_power_savings sysfs entry to eDP connectors

We want programs besides the compositor to be able to enable or disable
panel power saving features. However, since they are currently only
configurable through DRM properties, that isn't possible. So, to remedy
that issue introduce a new "panel_power_savings" sysfs attribute.

v2: squash in fix from Hamza (Alex)

Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Tested-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c