All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javier Martinez Canillas <javier@dowhile0.org>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: "Linux Kernel" <linux-kernel@vger.kernel.org>,
	"Rob Herring" <robh@kernel.org>, "Florian Larysch" <fl@n621.de>,
	"David Lechner" <david@lechnology.com>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Andy Shevchenko" <andy.shevchenko@gmail.com>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Sören Brinkmann" <soren.brinkmann@xilinx.com>,
	"Simon Horman" <horms@verge.net.au>,
	"Michal Simek" <michal.simek@xilinx.com>,
	"Dinh Nguyen" <dinguyen@kernel.org>,
	"Russell King" <linux@armlinux.org.uk>,
	"Will Deacon" <will.deacon@arm.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"Sekhar Nori" <nsekhar@ti.com>, "Scott Wood" <oss@buserror.net>,
	"Benjamin Herrenschmidt" <benh@kernel.crashing.org>,
	"Joachim Eastwood" <manabian@gmail.com>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"Masahiro Yamada" <yamada.masahiro@socionext.com>,
	"Michael Ellerman" <mpe@ellerman.id.au>,
	"Santosh Shilimkar" <ssantosh@kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	"Paul Mackerras" <paulus@samba.org>,
	"Magnus Damm" <magnus.damm@gmail.com>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	"Uwe Kleine-König" <kernel@pengutronix.de>,
	"Linux I2C" <linux-i2c@vger.kernel.org>
Subject: Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table
Date: Mon, 31 Jul 2017 18:17:38 +0200	[thread overview]
Message-ID: <CABxcv=mdbE0QGjoi3aLzxRqM3-MbkQ_Ai6fShcGVUGSNNqqrqw@mail.gmail.com> (raw)
In-Reply-To: <20170731153009.xkjknygpmckv2pfp@ninjato>

Hello Wolfram,

On Mon, Jul 31, 2017 at 5:30 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
>
>> Patches can be applied independently since the DTS changes without driver
>> changes are no-op and the OF table won't be used without the DTS changes.
>
> But there is a dependency, no? If I apply the driver patch,
> non-converted device trees will not find their eeproms anymore. So, I

I don't think that's correct. If you apply this patch before the DTS
changes, the driver will still match using the I2C device ID table
like it has been doing it until today.

IOW, this is what will happen:

1- an OF device is registered with the wrong compatible (not found in
the OF table)
2- the I2C core strips the vendor part and fills the struct i2c_client
.name with the device part.
3- i2c_device_match() will be called since a new device has been registered
4- i2c_of_match_device() will fail because there's no OF entry that
matches the device compatible
5- the I2C core fallbacks to i2c_match_id() and matches using the I2C
device ID table.

So no noticeable difference AFAICT in that case.

Best regards,
Javier

WARNING: multiple messages have this Message-ID (diff)
From: Javier Martinez Canillas <javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org>
To: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Cc: "Linux Kernel"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"Rob Herring" <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"Florian Larysch" <fl-J+Jo6bLUB7M@public.gmane.org>,
	"David Lechner" <david-nq/r/kbU++upp/zk7JDF2g@public.gmane.org>,
	"Rob Herring" <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"Andy Shevchenko"
	<andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Catalin Marinas" <catalin.marinas-5wv7dgnIgG8@public.gmane.org>,
	"Sören Brinkmann"
	<soren.brinkmann-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
	"Simon Horman" <horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>,
	"Michal Simek"
	<michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>,
	"Dinh Nguyen" <dinguyen-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"Russell King" <linux-I+IVW8TIWO2tmTQ+vhA3Yw@public.gmane.org>,
	"Will Deacon" <will.deacon-5wv7dgnIgG8@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"Sekhar Nori" <nsekhar-l0cyMroinI0@public.gmane.org>,
	"Scott Wood" <oss-fOR+EgIDQEHk1uMJSBkQmQ@public.gmane.org>,
	"Benjamin Herrenschmidt"
	<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>,
	"Joachim Eastwood"
	<manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"Mark Rutland" <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Subject: Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table
Date: Mon, 31 Jul 2017 18:17:38 +0200	[thread overview]
Message-ID: <CABxcv=mdbE0QGjoi3aLzxRqM3-MbkQ_Ai6fShcGVUGSNNqqrqw@mail.gmail.com> (raw)
In-Reply-To: <20170731153009.xkjknygpmckv2pfp@ninjato>

Hello Wolfram,

On Mon, Jul 31, 2017 at 5:30 PM, Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> wrote:
>
>> Patches can be applied independently since the DTS changes without driver
>> changes are no-op and the OF table won't be used without the DTS changes.
>
> But there is a dependency, no? If I apply the driver patch,
> non-converted device trees will not find their eeproms anymore. So, I

I don't think that's correct. If you apply this patch before the DTS
changes, the driver will still match using the I2C device ID table
like it has been doing it until today.

IOW, this is what will happen:

1- an OF device is registered with the wrong compatible (not found in
the OF table)
2- the I2C core strips the vendor part and fills the struct i2c_client
.name with the device part.
3- i2c_device_match() will be called since a new device has been registered
4- i2c_of_match_device() will fail because there's no OF entry that
matches the device compatible
5- the I2C core fallbacks to i2c_match_id() and matches using the I2C
device ID table.

So no noticeable difference AFAICT in that case.

Best regards,
Javier
--
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: javier@dowhile0.org (Javier Martinez Canillas)
To: linux-arm-kernel@lists.infradead.org
Subject: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table
Date: Mon, 31 Jul 2017 18:17:38 +0200	[thread overview]
Message-ID: <CABxcv=mdbE0QGjoi3aLzxRqM3-MbkQ_Ai6fShcGVUGSNNqqrqw@mail.gmail.com> (raw)
In-Reply-To: <20170731153009.xkjknygpmckv2pfp@ninjato>

Hello Wolfram,

On Mon, Jul 31, 2017 at 5:30 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
>
>> Patches can be applied independently since the DTS changes without driver
>> changes are no-op and the OF table won't be used without the DTS changes.
>
> But there is a dependency, no? If I apply the driver patch,
> non-converted device trees will not find their eeproms anymore. So, I

I don't think that's correct. If you apply this patch before the DTS
changes, the driver will still match using the I2C device ID table
like it has been doing it until today.

IOW, this is what will happen:

1- an OF device is registered with the wrong compatible (not found in
the OF table)
2- the I2C core strips the vendor part and fills the struct i2c_client
.name with the device part.
3- i2c_device_match() will be called since a new device has been registered
4- i2c_of_match_device() will fail because there's no OF entry that
matches the device compatible
5- the I2C core fallbacks to i2c_match_id() and matches using the I2C
device ID table.

So no noticeable difference AFAICT in that case.

Best regards,
Javier

  reply	other threads:[~2017-07-31 16:17 UTC|newest]

Thread overview: 115+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 18:54 [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table Javier Martinez Canillas
2017-06-15 18:54 ` Javier Martinez Canillas
2017-06-15 18:54 ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 01/16] dt-bindings: i2c: eeprom: Document vendor to be used and deprecated ones Javier Martinez Canillas
2017-06-23 18:17   ` Rob Herring
2017-06-23 18:17     ` Rob Herring
2017-08-28 16:02   ` Wolfram Sang
2017-06-15 18:54 ` [RESEND PATCH v5 02/16] eeprom: at24: Add OF device ID table Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 03/16] ARM: dts: efm32: Add generic compatible string for I2C EEPROM Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-08-16 14:21   ` Javier Martinez Canillas
2017-08-16 14:21     ` Javier Martinez Canillas
2017-08-16 14:21     ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 04/16] ARM: dts: keystone: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 05/16] ARM: dts: lpc18xx: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 06/16] ARM: dts: r7s72100: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-16 13:36   ` Simon Horman
2017-06-16 13:36     ` Simon Horman
2017-06-15 18:54 ` [RESEND PATCH v5 07/16] ARM: dts: koelsch: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-16 13:36   ` Simon Horman
2017-06-16 13:36     ` Simon Horman
2017-06-15 18:54 ` [RESEND PATCH v5 08/16] ARM: dts: socfpga: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-11-07  8:20   ` Javier Martinez Canillas
2017-11-07  8:20     ` Javier Martinez Canillas
2017-11-07  8:20     ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 09/16] ARM: dts: uniphier: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 10/16] ARM: dts: zynq: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-21 11:43   ` Michal Simek
2017-06-21 11:43     ` Michal Simek
2017-06-21 11:43     ` Michal Simek
2017-08-23 14:28     ` Javier Martinez Canillas
2017-08-23 14:28       ` Javier Martinez Canillas
2017-08-23 14:28       ` Javier Martinez Canillas
2017-08-24 13:44       ` Michal Simek
2017-08-24 13:44         ` Michal Simek
2017-09-21  9:41         ` Javier Martinez Canillas
2017-09-21  9:41           ` Javier Martinez Canillas
2017-09-21  9:41           ` Javier Martinez Canillas
2017-09-25  8:06           ` Michal Simek
2017-09-25  8:06             ` Michal Simek
2017-09-26  8:00             ` Javier Martinez Canillas
2017-09-26  8:00               ` Javier Martinez Canillas
2017-09-26  8:00               ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 11/16] arm64: zynqmp: " Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-15 18:54   ` Javier Martinez Canillas
2017-06-21 11:43   ` Michal Simek
2017-06-21 11:43     ` Michal Simek
2017-06-21 11:43     ` Michal Simek
2017-08-21 11:27     ` Javier Martinez Canillas
2017-08-21 11:27       ` Javier Martinez Canillas
2017-08-21 12:04       ` Michal Simek
2017-08-21 12:04         ` Michal Simek
2017-08-21 12:58         ` Javier Martinez Canillas
2017-08-21 12:58           ` Javier Martinez Canillas
2017-06-15 18:54 ` [RESEND PATCH v5 12/16] powerpc/5200: " Javier Martinez Canillas
2017-06-29 12:21   ` [RESEND, v5, " Michael Ellerman
2017-06-29 12:21     ` Michael Ellerman
2017-06-15 18:54 ` [RESEND PATCH v5 13/16] powerpc/fsl: " Javier Martinez Canillas
2017-06-29 12:21   ` [RESEND, v5, " Michael Ellerman
2017-06-29 12:21     ` Michael Ellerman
2017-06-15 18:54 ` [RESEND PATCH v5 14/16] powerpc/512x: " Javier Martinez Canillas
2017-06-29 12:21   ` [RESEND, v5, " Michael Ellerman
2017-06-29 12:21     ` Michael Ellerman
2017-06-15 18:54 ` [RESEND PATCH v5 15/16] powerpc/83xx: " Javier Martinez Canillas
2017-06-29 12:21   ` [RESEND, v5, " Michael Ellerman
2017-06-29 12:21     ` Michael Ellerman
2017-06-15 18:54 ` [RESEND PATCH v5 16/16] powerpc/44x: " Javier Martinez Canillas
2017-06-29 12:21   ` [RESEND, v5, " Michael Ellerman
2017-06-29 12:21     ` Michael Ellerman
2017-07-10  7:47 ` [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table Javier Martinez Canillas
2017-07-10  7:47   ` Javier Martinez Canillas
2017-07-10  7:47   ` Javier Martinez Canillas
2017-07-31 15:30 ` Wolfram Sang
2017-07-31 15:30   ` Wolfram Sang
2017-07-31 15:30   ` Wolfram Sang
2017-07-31 16:17   ` Javier Martinez Canillas [this message]
2017-07-31 16:17     ` Javier Martinez Canillas
2017-07-31 16:17     ` Javier Martinez Canillas
2017-08-28 16:01     ` Wolfram Sang
2017-08-28 16:01       ` Wolfram Sang
2017-08-28 16:01       ` Wolfram Sang
2017-08-29  8:44       ` Javier Martinez Canillas
2017-08-29  8:44         ` Javier Martinez Canillas
2017-08-29  8:44         ` Javier Martinez Canillas
2017-08-29  8:48         ` Wolfram Sang
2017-08-29  8:48           ` Wolfram Sang
2017-08-29  8:48           ` Wolfram Sang
2017-08-30 16:19           ` Javier Martinez Canillas
2017-08-30 16:19             ` Javier Martinez Canillas
2017-08-30 16:19             ` Javier Martinez Canillas
2017-08-30 17:42             ` Wolfram Sang
2017-08-30 17:42               ` Wolfram Sang
2017-08-30 17:42               ` Wolfram Sang
2017-08-30 19:57               ` Javier Martinez Canillas
2017-08-30 19:57                 ` Javier Martinez Canillas
2017-08-30 19:57                 ` Javier Martinez Canillas
2017-08-30 20:15                 ` Geert Uytterhoeven
2017-08-30 20:15                   ` Geert Uytterhoeven
2017-08-30 20:15                   ` Geert Uytterhoeven
2017-08-30 20:59                   ` Javier Martinez Canillas
2017-08-30 20:59                     ` Javier Martinez Canillas
2017-08-30 20:59                     ` 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='CABxcv=mdbE0QGjoi3aLzxRqM3-MbkQ_Ai6fShcGVUGSNNqqrqw@mail.gmail.com' \
    --to=javier@dowhile0.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=benh@kernel.crashing.org \
    --cc=catalin.marinas@arm.com \
    --cc=david@lechnology.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dinguyen@kernel.org \
    --cc=fl@n621.de \
    --cc=horms@verge.net.au \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=magnus.damm@gmail.com \
    --cc=manabian@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=michal.simek@xilinx.com \
    --cc=mpe@ellerman.id.au \
    --cc=nsekhar@ti.com \
    --cc=oss@buserror.net \
    --cc=paulus@samba.org \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=soren.brinkmann@xilinx.com \
    --cc=ssantosh@kernel.org \
    --cc=will.deacon@arm.com \
    --cc=wsa@the-dreams.de \
    --cc=yamada.masahiro@socionext.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 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.