From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 14/20] arm64: dts: ls1043a: Add generic compatible string for I2C EEPROM
Date: Thu, 25 May 2017 15:33:08 +0800 [thread overview]
Message-ID: <20170525073304.GX26102@dragon> (raw)
In-Reply-To: <20170523133448.4794-15-javier@dowhile0.org>
On Tue, May 23, 2017 at 03:34:42PM +0200, Javier Martinez Canillas wrote:
> The at24 driver allows to register I2C EEPROM chips using different vendor
> and devices, but the I2C subsystem does not take the vendor into account
> when matching using the I2C table since it only has device entries.
>
> But when matching using an OF table, both the vendor and device has to be
> taken into account so the driver defines only a set of compatible strings
> using the "atmel" vendor as a generic fallback for compatible I2C devices.
>
> So add this generic fallback to the device node compatible string to make
> the device to match the driver using the OF device ID table.
>
> Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Applied, thanks.
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Javier Martinez Canillas
<javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Wolfram Sang" <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>,
"Rob Herring" <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Stuart Yoder" <stuart.yoder-3arQi8VN3Tc@public.gmane.org>,
"Li Yang" <leoyang.li-3arQi8VN3Tc@public.gmane.org>,
"Rob Herring" <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"Hongtao Jia" <hongtao.jia-3arQi8VN3Tc@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
"Will Deacon" <will.deacon-5wv7dgnIgG8@public.gmane.org>,
"Herbert Xu"
<herbert-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q@public.gmane.org>,
"Mark Rutland" <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
"Catalin Marinas" <catalin.marinas-5wv7dgnIgG8@public.gmane.org>,
"Horia Geantă" <horia.geanta-3arQi8VN3Tc@public.gmane.org>
Subject: Re: [PATCH v5 14/20] arm64: dts: ls1043a: Add generic compatible string for I2C EEPROM
Date: Thu, 25 May 2017 15:33:08 +0800 [thread overview]
Message-ID: <20170525073304.GX26102@dragon> (raw)
In-Reply-To: <20170523133448.4794-15-javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org>
On Tue, May 23, 2017 at 03:34:42PM +0200, Javier Martinez Canillas wrote:
> The at24 driver allows to register I2C EEPROM chips using different vendor
> and devices, but the I2C subsystem does not take the vendor into account
> when matching using the I2C table since it only has device entries.
>
> But when matching using an OF table, both the vendor and device has to be
> taken into account so the driver defines only a set of compatible strings
> using the "atmel" vendor as a generic fallback for compatible I2C devices.
>
> So add this generic fallback to the device node compatible string to make
> the device to match the driver using the OF device ID table.
>
> Signed-off-by: Javier Martinez Canillas <javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Guo <shawnguo@kernel.org>
To: Javier Martinez Canillas <javier@dowhile0.org>
Cc: linux-kernel@vger.kernel.org, "Wolfram Sang" <wsa@the-dreams.de>,
"Rob Herring" <robh@kernel.org>,
devicetree@vger.kernel.org, "Stuart Yoder" <stuart.yoder@nxp.com>,
"Li Yang" <leoyang.li@nxp.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Hongtao Jia" <hongtao.jia@nxp.com>,
linux-arm-kernel@lists.infradead.org,
"Will Deacon" <will.deacon@arm.com>,
"Herbert Xu" <herbert@gondor.apana.org.au>,
"Mark Rutland" <mark.rutland@arm.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Horia Geantă" <horia.geanta@nxp.com>
Subject: Re: [PATCH v5 14/20] arm64: dts: ls1043a: Add generic compatible string for I2C EEPROM
Date: Thu, 25 May 2017 15:33:08 +0800 [thread overview]
Message-ID: <20170525073304.GX26102@dragon> (raw)
In-Reply-To: <20170523133448.4794-15-javier@dowhile0.org>
On Tue, May 23, 2017 at 03:34:42PM +0200, Javier Martinez Canillas wrote:
> The at24 driver allows to register I2C EEPROM chips using different vendor
> and devices, but the I2C subsystem does not take the vendor into account
> when matching using the I2C table since it only has device entries.
>
> But when matching using an OF table, both the vendor and device has to be
> taken into account so the driver defines only a set of compatible strings
> using the "atmel" vendor as a generic fallback for compatible I2C devices.
>
> So add this generic fallback to the device node compatible string to make
> the device to match the driver using the OF device ID table.
>
> Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Applied, thanks.
next prev parent reply other threads:[~2017-05-25 7:33 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-23 13:34 [PATCH v5 00/20] eeprom: at24: Add OF device ID table Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 01/20] dt-bindings: i2c: eeprom: Document vendor to be used and deprecated ones Javier Martinez Canillas
2017-05-23 15:30 ` Rob Herring
2017-05-23 13:34 ` [PATCH v5 02/20] eeprom: at24: Add OF device ID table Javier Martinez Canillas
[not found] ` <20170523133448.4794-1-javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org>
2017-05-23 13:34 ` [PATCH v5 03/20] ARM: dts: omap: Add generic compatible string for I2C EEPROM Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
[not found] ` <20170523133448.4794-4-javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org>
2017-05-26 15:51 ` Tony Lindgren
2017-05-26 15:51 ` Tony Lindgren
2017-05-26 15:51 ` Tony Lindgren
2017-05-23 13:34 ` [PATCH v5 04/20] ARM: dts: turris-omnia: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-06-08 17:04 ` Gregory CLEMENT
2017-06-08 17:04 ` Gregory CLEMENT
2017-06-08 17:04 ` Gregory CLEMENT
2017-05-23 13:34 ` [PATCH v5 05/20] ARM: dts: efm32: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-25 18:29 ` Uwe Kleine-König
2017-05-25 18:29 ` Uwe Kleine-König
2017-05-25 18:29 ` Uwe Kleine-König
2017-05-25 20:17 ` Javier Martinez Canillas
2017-05-25 20:17 ` Javier Martinez Canillas
2017-05-25 20:17 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 06/20] ARM: dts: imx: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-25 7:32 ` Shawn Guo
2017-05-25 7:32 ` Shawn Guo
2017-05-25 7:32 ` Shawn Guo
2017-05-23 13:34 ` [PATCH v5 07/20] ARM: dts: keystone: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 08/20] ARM: dts: lpc18xx: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 09/20] ARM: dts: r7s72100: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 10/20] ARM: dts: koelsch: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 11/20] ARM: dts: socfpga: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 12/20] ARM: dts: uniphier: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-06-05 5:13 ` Masahiro Yamada
2017-06-05 5:13 ` Masahiro Yamada
2017-06-05 5:13 ` Masahiro Yamada
2017-06-06 9:04 ` Javier Martinez Canillas
2017-06-06 9:04 ` Javier Martinez Canillas
2017-06-06 9:04 ` Javier Martinez Canillas
2017-06-07 1:10 ` Masahiro Yamada
2017-06-07 1:10 ` Masahiro Yamada
2017-06-07 1:10 ` Masahiro Yamada
2017-06-07 12:42 ` Javier Martinez Canillas
2017-06-07 12:42 ` Javier Martinez Canillas
2017-06-07 12:42 ` Javier Martinez Canillas
2017-06-09 16:12 ` Masahiro Yamada
2017-06-09 16:12 ` Masahiro Yamada
2017-06-09 16:12 ` Masahiro Yamada
2017-05-23 13:34 ` [PATCH v5 13/20] ARM: dts: zynq: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 14/20] arm64: dts: ls1043a: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-25 7:33 ` Shawn Guo [this message]
2017-05-25 7:33 ` Shawn Guo
2017-05-25 7:33 ` Shawn Guo
2017-05-23 13:34 ` [PATCH v5 15/20] arm64: zynqmp: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 16/20] powerpc/5200: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 17/20] powerpc/fsl: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 18/20] powerpc/512x: " Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 19/20] powerpc/83xx: " Javier Martinez Canillas
2017-05-23 13:34 ` Javier Martinez Canillas
2017-05-23 13:34 ` [PATCH v5 20/20] powerpc/44x: " Javier Martinez Canillas
2017-06-01 8:07 ` [PATCH v5 00/20] eeprom: at24: Add OF device ID table Javier Martinez Canillas
2017-06-01 8:07 ` Javier Martinez Canillas
2017-06-01 8:07 ` Javier Martinez Canillas
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=20170525073304.GX26102@dragon \
--to=shawnguo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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.