From: Jani Nikula <jani.nikula@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>,
Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Remove unused intel_gmbus_set_speed() function
Date: Mon, 22 Nov 2021 10:41:19 +0200 [thread overview]
Message-ID: <87wnl0oa4w.fsf@intel.com> (raw)
In-Reply-To: <20211121191001.252076-1-hdegoede@redhat.com>
On Sun, 21 Nov 2021, Hans de Goede <hdegoede@redhat.com> wrote:
> The intel_gmbus_set_speed() function is not used anywhere, remove it.
>
> Note drivers/gpu/drm/gma500 has its own copy called
> gma_intel_gmbus_set_speed() which is used, the intel_gmbus_set_speed()
> version in the i915 code is not used at all
Wow, the last user might have been removed by me. In 2012.
commit 6cb1612a7dc4c3d5ed86dba5dd21bb48a5c395af
Author: Jani Nikula <jani.nikula@intel.com>
Date: Mon Oct 22 16:12:17 2012 +0300
drm/i915/sdvo: force GPIO bit-banging also on default pin
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> drivers/gpu/drm/i915/display/intel_gmbus.c | 7 -------
> drivers/gpu/drm/i915/display/intel_gmbus.h | 1 -
> 2 files changed, 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.c b/drivers/gpu/drm/i915/display/intel_gmbus.c
> index ceb1bf8a8c3c..343f85543446 100644
> --- a/drivers/gpu/drm/i915/display/intel_gmbus.c
> +++ b/drivers/gpu/drm/i915/display/intel_gmbus.c
> @@ -922,13 +922,6 @@ struct i2c_adapter *intel_gmbus_get_adapter(struct drm_i915_private *dev_priv,
> return &dev_priv->gmbus[pin].adapter;
> }
>
> -void intel_gmbus_set_speed(struct i2c_adapter *adapter, int speed)
> -{
> - struct intel_gmbus *bus = to_intel_gmbus(adapter);
> -
> - bus->reg0 = (bus->reg0 & ~(0x3 << 8)) | speed;
> -}
> -
> void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit)
> {
> struct intel_gmbus *bus = to_intel_gmbus(adapter);
> diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.h b/drivers/gpu/drm/i915/display/intel_gmbus.h
> index b96212b85425..8edc2e99cf53 100644
> --- a/drivers/gpu/drm/i915/display/intel_gmbus.h
> +++ b/drivers/gpu/drm/i915/display/intel_gmbus.h
> @@ -41,7 +41,6 @@ int intel_gmbus_output_aksv(struct i2c_adapter *adapter);
>
> struct i2c_adapter *
> intel_gmbus_get_adapter(struct drm_i915_private *dev_priv, unsigned int pin);
> -void intel_gmbus_set_speed(struct i2c_adapter *adapter, int speed);
> void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit);
> bool intel_gmbus_is_forced_bit(struct i2c_adapter *adapter);
> void intel_gmbus_reset(struct drm_i915_private *dev_priv);
--
Jani Nikula, Intel Open Source Graphics Center
prev parent reply other threads:[~2021-11-22 8:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-21 19:10 [Intel-gfx] [PATCH] drm/i915: Remove unused intel_gmbus_set_speed() function Hans de Goede
2021-11-21 19:20 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for " Patchwork
2021-11-21 19:48 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-11-21 21:03 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-11-22 16:07 ` Hans de Goede
2021-11-22 8:41 ` Jani Nikula [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=87wnl0oa4w.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hdegoede@redhat.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=joonas.lahtinen@linux.intel.com \
--cc=rodrigo.vivi@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