mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
drm/i915/backlight: Take luminance_set into account for VESA backlight
When deciding what functions to enable to help control backlight we used to only check aux_enable. Now with PANEL_LUMINANCE_OVERRIDE in picture we need to take care that we do not enable PWM function if luminance_set is set. Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15671 Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com> Link: https://patch.msgid.link/20260302040613.3324049-4-suraj.kandpal@intel.com
This commit is contained in:
parent
c15a236644
commit
79e870c86d
|
|
@ -486,7 +486,8 @@ intel_dp_aux_vesa_enable_backlight(const struct intel_crtc_state *crtc_state,
|
|||
struct intel_panel *panel = &connector->panel;
|
||||
struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
|
||||
|
||||
if (!panel->backlight.edp.vesa.info.aux_enable) {
|
||||
if (!(panel->backlight.edp.vesa.info.aux_enable ||
|
||||
panel->backlight.edp.vesa.info.luminance_set)) {
|
||||
u32 pwm_level;
|
||||
|
||||
if (!panel->backlight.edp.vesa.info.aux_set)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user