From: "Murthy, Arun R" <arun.r.murthy@intel.com>
To: "Kandpal, Suraj" <suraj.kandpal@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Subject: RE: [PATCH] drm/i915/backlight: Disable backlight when using luminance control
Date: Tue, 2 Sep 2025 08:29:14 +0000 [thread overview]
Message-ID: <IA0PR11MB730716C9EEFBF74FB7741176BA06A@IA0PR11MB7307.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20250826080005.501534-1-suraj.kandpal@intel.com>
> -----Original Message-----
> From: Kandpal, Suraj <suraj.kandpal@intel.com>
> Sent: Tuesday, August 26, 2025 1:30 PM
> To: intel-xe@lists.freedesktop.org; intel-gfx@lists.freedesktop.org
> Cc: Murthy, Arun R <arun.r.murthy@intel.com>; Nautiyal, Ankit K
> <ankit.k.nautiyal@intel.com>; Kandpal, Suraj <suraj.kandpal@intel.com>
> Subject: [PATCH] drm/i915/backlight: Disable backlight when using luminance
> control
>
> We just return when using luminance control instead we should be calling the
> disable helper to get everything cleaned up properly.
>
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> index 12084a542fc5..7306858467fe 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> @@ -508,10 +508,10 @@ 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)
> + if (panel->backlight.edp.vesa.luminance_control_support) {
Basically this if condition itself can be removed.
Upon removal of this if condition
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Also update the patch commit message accordingly.
Thanks and Regards,
Arun R Murthy
-------------------
> + drm_edp_backlight_disable(&intel_dp->aux,
> +&panel->backlight.edp.vesa.info);
> return;
> -
> - drm_edp_backlight_disable(&intel_dp->aux, &panel-
> >backlight.edp.vesa.info);
> + }
>
> if (!panel->backlight.edp.vesa.info.aux_enable)
> panel->backlight.pwm_funcs->disable(old_conn_state,
> --
> 2.34.1
prev parent reply other threads:[~2025-09-02 8:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-26 8:00 [PATCH] drm/i915/backlight: Disable backlight when using luminance control Suraj Kandpal
2025-08-26 8:46 ` ✓ CI.KUnit: success for " Patchwork
2025-08-26 9:37 ` ✓ Xe.CI.BAT: " Patchwork
2025-08-26 15:54 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-02 8:29 ` Murthy, Arun R [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=IA0PR11MB730716C9EEFBF74FB7741176BA06A@IA0PR11MB7307.namprd11.prod.outlook.com \
--to=arun.r.murthy@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=suraj.kandpal@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).