drm/i915/backlight: Check Luminance based brightness control for VESA
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 6 Feb 2025 06:32:49 +0000 (12:02 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 6 Feb 2025 16:44:42 +0000 (22:14 +0530)
commit64481497924d8055fa7d6e60948ca899fe341cb6
treeb4a3b8fff1794f9789b52985e65e83619d055d1c
parent9535c6a4c61cc0da28b9c9986aad200f1e1019e4
drm/i915/backlight: Check Luminance based brightness control for VESA

Check if we are capable of controlling brightness via luminance
which is dependent on PANEL_LUMINANCE_CONTROL_CAPABLE bit being set
on EDP_GENERAL_CAPABILITY_2 register.

--v2
-Prefer using luminance rather than nits [Jani]
-Fix commit message

--v3
-Fix the bit name used in commit message [Arun]
-Use correct edp_dpcd[] to check the capability [Arun]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Tested-by: Ben Kao <ben.kao@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250206063253.2827017-5-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c