From: Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Andy Shevchenko
<andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Benson Leung <bleung-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Subject: Re: [PATCH] i2c: designware-pci: Add Baytrail PCI IDs
Date: Mon, 17 Feb 2014 10:11:04 +0200 [thread overview]
Message-ID: <20140217081104.GM5018@intel.com> (raw)
In-Reply-To: <20140215152736.GF2579@katana>
On Sat, Feb 15, 2014 at 04:27:37PM +0100, Wolfram Sang wrote:
> On Tue, Feb 04, 2014 at 04:31:19PM +0200, Mika Westerberg wrote:
> > Intel Baytrail I2C controllers can be enumerated from PCI as well as from
> > ACPI. In order to support this add the Baytrail PCI IDs to the driver.
> >
> > Signed-off-by: Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
>
> Basically fine, one question:
>
> > - snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci-%d",
> > - adap->nr);
> > +
> > + if (adap->nr < 0)
> > + snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci");
> > + else
> > + snprintf(adap->name, sizeof(adap->name),
> > + "i2c-designware-pci-%d", adap->nr);
>
> Maybe we just drop the "-%d" suffix entirely?
I suggested that already when Benson (CC'd) sent his Haswell patch series.
His opinion was that it is useful in certain cases to know the bus number
(like grepping /proc/interrupts, IIRC).
For Baytrail we don't need it so if nobody objects, I'll just go ahead and
drop it.
WARNING: multiple messages have this Message-ID (diff)
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-i2c@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
linux-kernel@vger.kernel.org, Benson Leung <bleung@chromium.org>
Subject: Re: [PATCH] i2c: designware-pci: Add Baytrail PCI IDs
Date: Mon, 17 Feb 2014 10:11:04 +0200 [thread overview]
Message-ID: <20140217081104.GM5018@intel.com> (raw)
In-Reply-To: <20140215152736.GF2579@katana>
On Sat, Feb 15, 2014 at 04:27:37PM +0100, Wolfram Sang wrote:
> On Tue, Feb 04, 2014 at 04:31:19PM +0200, Mika Westerberg wrote:
> > Intel Baytrail I2C controllers can be enumerated from PCI as well as from
> > ACPI. In order to support this add the Baytrail PCI IDs to the driver.
> >
> > Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> Basically fine, one question:
>
> > - snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci-%d",
> > - adap->nr);
> > +
> > + if (adap->nr < 0)
> > + snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci");
> > + else
> > + snprintf(adap->name, sizeof(adap->name),
> > + "i2c-designware-pci-%d", adap->nr);
>
> Maybe we just drop the "-%d" suffix entirely?
I suggested that already when Benson (CC'd) sent his Haswell patch series.
His opinion was that it is useful in certain cases to know the bus number
(like grepping /proc/interrupts, IIRC).
For Baytrail we don't need it so if nobody objects, I'll just go ahead and
drop it.
next prev parent reply other threads:[~2014-02-17 8:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 14:31 [PATCH] i2c: designware-pci: Add Baytrail PCI IDs Mika Westerberg
2014-02-04 14:31 ` Mika Westerberg
[not found] ` <1391524279-23409-1-git-send-email-mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-02-15 15:27 ` Wolfram Sang
2014-02-15 15:27 ` Wolfram Sang
2014-02-17 8:11 ` Mika Westerberg [this message]
2014-02-17 8:11 ` Mika Westerberg
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=20140217081104.GM5018@intel.com \
--to=mika.westerberg-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=bleung-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org \
/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.