All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jani Nikula" <jani.nikula@intel.com>,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915/display: don't be cute about printing enabling/disabling
Date: Tue, 24 Nov 2026 14:24:15 +0000	[thread overview]
Message-ID: <sashiko-outbox-231335@kernel.org> (raw)
In-Reply-To: <20261124141146.1560208-1-jani.nikula@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/i915/display: intel_force_bit_banging_write() missed in
  %sabling cleanup
--

commit a6f91eb39a4003adc548629cfa79fbc4fb32b5bb
Author: Jani Nikula <jani.nikula@intel.com>

drm/i915/display: don't be cute about printing enabling/disabling

This commit replaces "%sabling", enable ? "en" : "dis" debug logging
patterns in i915 display code with str_enable_disable().

[ ... ]

> diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.c b/drivers/gpu/drm/i915/display/intel_gmbus.c
> index d43c81d362e6c..d68521588d54b 100644
> --- a/drivers/gpu/drm/i915/display/intel_gmbus.c
> +++ b/drivers/gpu/drm/i915/display/intel_gmbus.c
> @@ -1107,9 +1107,8 @@ void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit)
>  	mutex_lock(&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);
>  
>  	mutex_unlock(&display->gmbus.mutex);

[Severity: Low]
Should intel_force_bit_banging_write() in this same file also be converted
to str_enable_disable()?  It logs the identical bit-banging message using
the old "%sabling" pattern:

drivers/gpu/drm/i915/display/intel_gmbus.c:intel_force_bit_banging_write() {
    ...
		drm_dbg_kms(display->drm,
			    "%sabling bit-banging on %s. force bit now %d\n",
			    force_bit_banging ? "en" : "dis",
			    connector->base.ddc->name, force_bit);
    ...
}

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124141146.1560208-1-jani.nikula@intel.com?part=1

  parent reply	other threads:[~2026-11-24 14:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 14:11 [PATCH 1/2] drm/i915/display: don't be cute about printing enabling/disabling Jani Nikula
2026-11-24 14:11 ` [PATCH 2/2] drm/i915/display: use str_enable_disable() more Jani Nikula
2026-11-25  6:10   ` Kandpal, Suraj
2026-11-24 14:24 ` sashiko-bot [this message]
2026-11-25 11:48   ` [PATCH 1/2] drm/i915/display: don't be cute about printing enabling/disabling Jani Nikula
2026-11-24 14:48 ` ✗ CI.KUnit: failure for series starting with [1/2] " Patchwork
2026-11-25  1:11 ` ✓ i915.CI.BAT: success " Patchwork
2026-11-25 18:42 ` ✓ i915.CI.Full: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-11-24 14:10 [PATCH 1/2] " Jani Nikula
2026-11-24 14:15 ` Jani Nikula
2026-11-25  6:11 ` Kandpal, Suraj

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=sashiko-outbox-231335@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.