From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Moritz Fischer <moritz.fischer@ettus.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
"Lee Jones" <lee.jones@linaro.org>,
"Emilio López" <emilio.lopez@collabora.co.uk>,
"Javier Martinez Canillas" <javier@osg.samsung.com>,
"Thierry Reding" <treding@nvidia.com>,
"Shawn Guo" <shawnguo@kernel.org>,
"Jarkko Sakkinen" <jarkko.sakkinen@linux.intel.com>,
antonynpavlov@gmail.com,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
moritz.fischer.private@gmail.com, julia@ni.com
Subject: Re: [PATCH 3/3] mfd: cros_ec_spi: Add compatible string for NI version of cros-ec-spi
Date: Wed, 28 Sep 2016 10:27:43 -0700 [thread overview]
Message-ID: <CAKdAkRRMbfJWeiEWWDUPemWS9f4rzSWX4T1sp+qD9_BDoU-Jdg@mail.gmail.com> (raw)
In-Reply-To: <1475081961-3858-3-git-send-email-moritz.fischer@ettus.com>
On Wed, Sep 28, 2016 at 9:59 AM, Moritz Fischer
<moritz.fischer@ettus.com> wrote:
> Add compatible string for NI version of cros-ec-spi.
>
> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
> ---
> drivers/mfd/cros_ec_spi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mfd/cros_ec_spi.c b/drivers/mfd/cros_ec_spi.c
> index ebe9b94..e4504ec 100644
> --- a/drivers/mfd/cros_ec_spi.c
> +++ b/drivers/mfd/cros_ec_spi.c
> @@ -708,6 +708,7 @@ static SIMPLE_DEV_PM_OPS(cros_ec_spi_pm_ops, cros_ec_spi_suspend,
> cros_ec_spi_resume);
>
> static const struct of_device_id cros_ec_spi_of_match[] = {
> + { .compatible = "ni,cros-ec-spi", },
I am confused: if the 2 controllers are the same, why do we need the
new compat string, at least in the driver? Shouldn't DTS simply use
"google,cros-ec-spi", or maybe both (compatible = "ni,cros-ec-spi",
"google,cros-ec-spi")?
DT folks, is there clear instructions somewhere as to when
introduction of new compatible is warranted, along with the rules of
how to settle on common fallback (i.e. how to make sure that, let's
say, Linux, U-boot and FreeBSD use the same fallback compatible for
the same series of devices)?
> { .compatible = "google,cros-ec-spi", },
> { /* sentinel */ },
> };
> --
> 2.7.4
>
Thanks.
--
Dmitry
next prev parent reply other threads:[~2016-09-28 17:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 16:59 [PATCH 1/3] Docs: DT: Add National Instruments vendor prefix Moritz Fischer
2016-09-28 16:59 ` [PATCH 2/3] mfd: cros_ec_spi: Add additional compatible string for NI version Moritz Fischer
2016-09-28 16:59 ` [PATCH 3/3] mfd: cros_ec_spi: Add compatible string for NI version of cros-ec-spi Moritz Fischer
2016-09-28 17:27 ` Dmitry Torokhov [this message]
[not found] ` <CAKdAkRRMbfJWeiEWWDUPemWS9f4rzSWX4T1sp+qD9_BDoU-Jdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-28 17:32 ` Moritz Fischer
[not found] ` <1475081961-3858-1-git-send-email-moritz.fischer-+aYTwkv1SeIAvxtiuMwx3w@public.gmane.org>
2016-10-04 13:29 ` [PATCH 1/3] Docs: DT: Add National Instruments vendor prefix Rob Herring
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=CAKdAkRRMbfJWeiEWWDUPemWS9f4rzSWX4T1sp+qD9_BDoU-Jdg@mail.gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=antonynpavlov@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=emilio.lopez@collabora.co.uk \
--cc=jarkko.sakkinen@linux.intel.com \
--cc=javier@osg.samsung.com \
--cc=julia@ni.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=moritz.fischer.private@gmail.com \
--cc=moritz.fischer@ettus.com \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.org \
--cc=treding@nvidia.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).