]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/backlight: Check if VESA backlight is possible
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 16 Mar 2026 03:18:51 +0000 (08:48 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Wed, 18 Mar 2026 02:30:30 +0000 (08:00 +0530)
commit0fb03890d18205ec0909fc47049eceae8ba36457
tree663a78f550e4b0ee08953de4044635baced9235c
parent3ccc8a922906703cd0efdf1bdd6186f18f7e23ec
drm/i915/backlight: Check if VESA backlight is possible

Check if BACKLIGHT_BRIGHTNESS_AUX_SET_CAPABLE bit is
set then EDP_PWMGEN_BIT_COUNT_CAP_MIN and EDP_PWMGEN_BIT_COUNT_CAP_MAX
follow the eDP 1.4b Section 10.3. Which states min should
be >= 1 and max should be >= min. Some legacy panels
do not follow this properly. They set the
BACKLIGHT_BRIGHTNESS_AUX_SET_CAPABLE bit while not correctly
populating the min and max fields leading to a 0 max value.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/7514
Fixes: 40d2f5820951 ("drm/i915/backlight: Remove try_vesa_interface")
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Pranay Samala <pranay.samala@intel.com>
Link: https://patch.msgid.link/20260316031850.81794-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c