Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Jani Nikula <jani.nikula@intel.com>,
	<intel-gfx@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Subject: Re: [PATCH v2 5/6] drm/i915/display: don't be cute about printing enabling/disabling
Date: Thu, 26 Nov 2026 18:53:01 +0530	[thread overview]
Message-ID: <246d5f55-5f03-4e44-8b0e-ada5acae3428@intel.com> (raw)
In-Reply-To: <b2083460376976a93772d0c06a933c27d910d157.1795607055.git.jani.nikula@intel.com>


On 11/25/2026 5:16 PM, Jani Nikula wrote:
> Convert "%sabling", enable ? "en" : "dis" patterns to use
> str_enable_disable(). The imperative is just fine here.
>
> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>


> ---
>   drivers/gpu/drm/i915/display/intel_fdi.c     | 3 +--
>   drivers/gpu/drm/i915/display/intel_gmbus.c   | 5 ++---
>   drivers/gpu/drm/i915/display/intel_hotplug.c | 4 ++--
>   3 files changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_fdi.c b/drivers/gpu/drm/i915/display/intel_fdi.c
> index c170d3104e4c..8f83762c1031 100644
> --- a/drivers/gpu/drm/i915/display/intel_fdi.c
> +++ b/drivers/gpu/drm/i915/display/intel_fdi.c
> @@ -404,8 +404,7 @@ static void cpt_set_fdi_bc_bifurcation(struct intel_display *display, bool enabl
>   	if (enable)
>   		temp |= FDI_BC_BIFURCATION_SELECT;
>   
> -	drm_dbg_kms(display->drm, "%sabling fdi C rx\n",
> -		    enable ? "en" : "dis");
> +	drm_dbg_kms(display->drm, "%s FDI C RX\n", str_enable_disable(enable));
>   	intel_de_write(display, SOUTH_CHICKEN1, temp);
>   	intel_de_posting_read(display, SOUTH_CHICKEN1);
>   }
> diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.c b/drivers/gpu/drm/i915/display/intel_gmbus.c
> index 0c3037ef0dcb..990e5cd14863 100644
> --- a/drivers/gpu/drm/i915/display/intel_gmbus.c
> +++ b/drivers/gpu/drm/i915/display/intel_gmbus.c
> @@ -1023,9 +1023,8 @@ static void intel_gmbus_force_bit_unlocked(struct i2c_adapter *adapter, bool for
>   	lockdep_assert_held(&display->gmbus.mutex);
>   
>   	bus->force_bit += force_bit ? 1 : -1;
> -	drm_dbg_kms(display->drm,
> -		    "%sabling bit-banging on %s. force bit now %d\n",
> -		    force_bit ? "en" : "dis", adapter->name,
> +	drm_dbg_kms(display->drm, "%s bit-banging on %s. force bit now %d\n",
> +		    str_enable_disable(force_bit), adapter->name,
>   		    bus->force_bit);
>   }
>   
> diff --git a/drivers/gpu/drm/i915/display/intel_hotplug.c b/drivers/gpu/drm/i915/display/intel_hotplug.c
> index d095eb13dc06..09f34c9a8643 100644
> --- a/drivers/gpu/drm/i915/display/intel_hotplug.c
> +++ b/drivers/gpu/drm/i915/display/intel_hotplug.c
> @@ -1309,8 +1309,8 @@ static ssize_t i915_hpd_short_storm_ctl_write(struct file *file,
>   	else if (kstrtobool(tmp, &new_state) != 0)
>   		return -EINVAL;
>   
> -	drm_dbg_kms(display->drm, "%sabling HPD short storm detection\n",
> -		    new_state ? "En" : "Dis");
> +	drm_dbg_kms(display->drm, "%s HPD short storm detection\n",
> +		    str_enable_disable(new_state));
>   
>   	spin_lock_irq(&display->irq.lock);
>   	hotplug->hpd_short_storm_enabled = new_state;

  reply	other threads:[~2026-11-26 13:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 11:46 [PATCH v2 0/6] drm/i915: gmbus refactors and str_enable_disable() usage Jani Nikula
2026-11-25 11:46 ` [PATCH v2 1/6] drm/i915/gmbus: move debugfs stuff at the end of the file Jani Nikula
2026-11-26 13:01   ` Nautiyal, Ankit K
2026-11-25 11:46 ` [PATCH v2 2/6] drm/i915/gmbus: pass struct i2c_adapter to debugfs functions Jani Nikula
2026-11-26 13:02   ` Nautiyal, Ankit K
2026-11-25 11:46 ` [PATCH v2 3/6] drm/i915/gmbus: remove and open-code intel_gmbus_is_adapter() Jani Nikula
2026-11-26 13:03   ` Nautiyal, Ankit K
2026-11-25 11:46 ` [PATCH v2 4/6] drm/i915/gmbus: deduplicate setting force bit-banging Jani Nikula
2026-11-26 13:07   ` Nautiyal, Ankit K
2026-11-25 11:46 ` [PATCH v2 5/6] drm/i915/display: don't be cute about printing enabling/disabling Jani Nikula
2026-11-26 13:23   ` Nautiyal, Ankit K [this message]
2026-11-25 11:46 ` [PATCH v2 6/6] drm/i915/display: use str_enable_disable() more Jani Nikula
2026-11-26 13:24   ` Nautiyal, Ankit K
2026-11-27  9:36     ` Jani Nikula
2026-11-25 12:05 ` ✓ CI.KUnit: success for drm/i915: gmbus refactors and str_enable_disable() usage Patchwork
2026-11-25 12:56 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-25 17:48 ` ✗ Xe.CI.FULL: failure " Patchwork

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=246d5f55-5f03-4e44-8b0e-ada5acae3428@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --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