devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: Alexandre Courbot <acourbot@nvidia.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Mark Brown <broonie@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Simon Horman <horms@verge.net.au>, Joe Perches <joe@perches.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>,
	Olof Johansson <olof@lixom.net>,
	Stephen Warren <swarren@wwwdotorg.org>,
	Rob Herring <robh@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	ALSA Development Mailing List <alsa-devel@alsa-project.org>,
	Linux-sh list <linux-sh@vger.kernel.org>,
	Magnus <magnus.damm@gmail.com>,
	"grant.likely@linaro.org" <grant.likely@linaro.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-tegra@vger.kernel.org
Subject: Re: [PATCH v3] of: replace Asahi Kasei Corp venter prefix
Date: Fri, 14 Nov 2014 10:30:17 +0100	[thread overview]
Message-ID: <20141114093016.GB3810@ulmo> (raw)
In-Reply-To: <5465BFA2.9050706@nvidia.com>

[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]

On Fri, Nov 14, 2014 at 05:38:58PM +0900, Alexandre Courbot wrote:
> On 11/14/2014 10:43 AM, Kuninori Morimoto wrote:
[...]
> >diff --git a/arch/arm/boot/dts/tegra20-seaboard.dts b/arch/arm/boot/dts/tegra20-seaboard.dts
> >index a1d4bf9..7f5cf80 100644
> >--- a/arch/arm/boot/dts/tegra20-seaboard.dts
> >+++ b/arch/arm/boot/dts/tegra20-seaboard.dts
> >@@ -405,7 +405,7 @@
> >  		clock-frequency = <400000>;
> >
> >  		magnetometer@c {
> >-			compatible = "ak,ak8975";
> >+			compatible = "asahi-kasei,ak8975";
> 
> Mmm. So does this mean this device was never probed because the driver did
> not recognize its compatible property?

I2C (like SPI) has a fallback in case the OF table yields no match. The
of_modalias_node() that it uses extracts the module name from the device
tree node's compatible string by skipping the vendor prefix. The
resulting string is then set as the I2C client's name and causes the I2C
standard ID matching to succeed (see of_i2c_register_devices() for how
this is done in detail).

> I cannot find "ak,ak8975" anywhere else in the kernel.
> 
> If so,
> 
> Acked-by: Alexandre Courbot <acourbot@nvidia.com>

Technically this is breaking backwards-compatibility from a DT
perspective, but I think it's safe to do because the Linux kernel has a
way of dealing with this and other operating systems should be able to
deal with this in a similar way (or even easier by letting the driver
match on the ak prefix as well for this particular chip).

So:

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2014-11-14  9:30 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-11  8:12 "ak" vs "asahi-kasei" (was: Re: [PATCH 3/3 v3] ARM: shmobile: lager: add sound support on DT) Geert Uytterhoeven
2014-06-11  8:30 ` [alsa-devel] " Kuninori Morimoto
2014-06-11  8:40   ` Ben Dooks
2014-06-11 16:54     ` Mark Brown
2014-06-11 16:57       ` Geert Uytterhoeven
2014-06-11 17:02         ` Mark Brown
2014-06-11 17:08           ` Geert Uytterhoeven
2014-06-11 18:51           ` [alsa-devel] "ak" vs "asahi-kasei" Stephen Warren
2014-06-11 19:04             ` Mark Brown
2014-06-11 19:16               ` Stephen Warren
2014-06-12  0:53                 ` [PATCH] of: Add vendor 2nd prefix for Asahi Kasei Corp Kuninori Morimoto
2014-06-12  0:59                   ` Simon Horman
     [not found]                   ` <87sinbdk44.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-06-12 15:33                     ` Stephen Warren
2014-09-04  6:08                   ` [PATCH][resend] " Kuninori Morimoto
2014-09-22 13:00                     ` Mark Rutland
2014-09-22 13:24                       ` Geert Uytterhoeven
2014-09-22 13:27                         ` Mark Rutland
2014-11-13  2:18                           ` Kuninori Morimoto
     [not found]                             ` <87y4rfhmgl.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-11-13  2:21                               ` Joe Perches
2014-11-13  2:51                                 ` Simon Horman
2014-11-13  3:33                                   ` Kuninori Morimoto
2014-11-13 11:07                                     ` Mark Brown
     [not found]                                       ` <20141113110740.GE3815-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-11-14  1:43                                         ` [PATCH v3] of: replace Asahi Kasei Corp venter prefix Kuninori Morimoto
     [not found]                                           ` <87k32yd0bd.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-11-14  8:38                                             ` Alexandre Courbot
2014-11-14  9:16                                               ` Arnd Bergmann
2014-11-14  9:30                                               ` Thierry Reding [this message]
2014-11-14  9:35                                             ` [alsa-devel] " Thierry Reding
2014-11-17  0:51                                               ` [PATCH v4] " Kuninori Morimoto
2014-11-17 10:26                                                 ` Sergei Shtylyov
2014-11-18  0:30                                                   ` [PATCH v5] of: replace Asahi Kasei Corp vendor prefix Kuninori Morimoto
     [not found]                                                     ` <877fytxsde.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-11-28  0:22                                                       ` [PATCH v5][resend] of: replace Asahi Kasei Corp venter prefix Kuninori Morimoto
     [not found]                                                         ` <87egsob2cl.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-11-28 11:45                                                           ` Sergei Shtylyov
     [not found]                                                             ` <5478603D.1080404-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2014-12-02  4:57                                                               ` [PATCH v5][resend] of: replace Asahi Kasei Corp vendor prefix Kuninori Morimoto
     [not found]                                                                 ` <87d282sl6w.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2014-12-15  3:53                                                                   ` [PATCH v5][resend v2] " Kuninori Morimoto
2015-01-13 20:03                                                                 ` [PATCH v5][resend] " Rob Herring
2014-06-12 11:12                 ` [alsa-devel] "ak" vs "asahi-kasei" Mark Brown

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=20141114093016.GB3810@ulmo \
    --to=thierry.reding@gmail.com \
    --cc=acourbot@nvidia.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=grant.likely@linaro.org \
    --cc=horms@verge.net.au \
    --cc=joe@perches.com \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=olof@lixom.net \
    --cc=robh@kernel.org \
    --cc=swarren@wwwdotorg.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 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).