Skip to content

Commit 6acbf71

Browse files
committed
drm/i915/backlight: Modify condition to use panel luminance
According to our internal spec we need to now check if both panel luminance and smooth brightness are available in panel for us to be able to change brightness using luminance value. --v2 -Add Fixes tag [Ankit] Fixes: 6448149 ("drm/i915/backlight: Check Luminance based brightness control for VESA") Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com> Link: https://lore.kernel.org/r/20250411060235.2732060-3-suraj.kandpal@intel.com
1 parent cc2308e commit 6acbf71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,8 @@ intel_dp_aux_supports_vesa_backlight(struct intel_connector *connector)
663663
struct intel_dp *intel_dp = intel_attached_dp(connector);
664664
struct intel_panel *panel = &connector->panel;
665665

666-
if ((intel_dp->edp_dpcd[3] & DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE)) {
666+
if ((intel_dp->edp_dpcd[3] & DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE) &&
667+
(intel_dp->edp_dpcd[3] & DP_EDP_SMOOTH_BRIGHTNESS_CAPABLE)) {
667668
drm_dbg_kms(display->drm,
668669
"[CONNECTOR:%d:%s] AUX Luminance Based Backlight Control Supported!\n",
669670
connector->base.base.id, connector->base.name);

0 commit comments

Comments
 (0)