]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/i915/backlight: Disable backlight when using luminance control
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 4 Sep 2025 04:48:04 +0000 (10:18 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 9 Sep 2025 02:55:25 +0000 (08:25 +0530)
We just return when using luminance control instead we should be
calling the disable helper to get everything cleaned up properly
by default.

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/20250904044804.948391-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c

index f665d845c8098f6bf586d6bea0fd7085e2ff7276..0cf49219c44d05299278bcc75dbf27c8cc58e45c 100644 (file)
@@ -550,9 +550,6 @@ static void intel_dp_aux_vesa_disable_backlight(const struct drm_connector_state
        struct intel_panel *panel = &connector->panel;
        struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
 
-       if (panel->backlight.edp.vesa.luminance_control_support)
-               return;
-
        drm_edp_backlight_disable(&intel_dp->aux, &panel->backlight.edp.vesa.info);
 
        if (!panel->backlight.edp.vesa.info.aux_enable)