On Thu, Sep 04, 2014 at 07:08:37AM +0100, Kuninori Morimoto wrote: > From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> > > Current vendor-prefixes.txt already has > "ak" prefix for Asahi Kasei Corp by > ae8c4209af2cec065fef15d200a42a04130799f7 > (of: Add vendor prefix for Asahi Kasei Corp.) > > But, almost all Asahi Kasei chip driver is > using "asahi-kasei" prefix today. > > This patch adds "asahi-kasei" to vendor-prefixes.txt. > checkpatch.pl will report WARNING without this patch. > (DT compatible string vendor "asahi-kasei" appears un-documented) If we're adding a new string, we should figure out what's happening with the old one. We want some consistency here. >From a quick grep, it looks like the only use of "ak" is "ak,ak8975" in arch/arm/boot/dts/tegra20-seaboard.dts. There are instances of "asahi-kasei,ak8975" in other dts files. Olof added "asahi-kasei,ak8975" to the ak8975 driver in February 2012 (see 54461c3067b2), and the "asahi-kasei" prefix is currently far more common. This was only documented in May 2013 (see f4b7f751c6fd). Stephen added the "ak" vendor-refix was added later in November 2012 (see ae8c4209af2c), and the only instance seems to work due to the i2c subsystem doing something dehind the scenes with the compatible string. So I think we made a mistake there. Given all that, I think we should get rid of the "ak" prefix entirely, fix up the seaboard dts, and leave the legacy matching for "ak,ak8975" up to the i2c framework. However, that would imply deleting from vendor-prefixes.txt (if we want people to be warned on use of "ak"), and that's not a good precedent to set. Thoughts? Mark. > OTOH, Asahi Kasei is usually referred to as "AKM", > but this patch doesn't care about it. > Because no DT is using it today. > > Cc: Stephen Warren <swarren@xxxxxxxxxxxxx> > Cc: Mark Brown <broonie@xxxxxxxxxx> > Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>, > Acked-by: Simon Horman <horms+renesas@xxxxxxxxxxxx> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> > --- > .../devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt > index abc3080..7e4bb83 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > @@ -17,6 +17,7 @@ amstaos AMS-Taos Inc. > apm Applied Micro Circuits Corporation (APM) > arm ARM Ltd. > armadeus ARMadeus Systems SARL > +asahi-kasei Asahi Kasei Corp. > atmel Atmel Corporation > auo AU Optronics Corporation > avago Avago Technologies > -- > 1.7.9.5 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html