Re: [PATCH] i2c: let the core register devices from devicetree
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2012-06-14 11:35:24
Also in:
linux-arm-kernel, linuxppc-dev
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2012-06-14 11:35:24
Also in:
linux-arm-kernel, linuxppc-dev
On Thu, 2012-06-14 at 11:14 +0200, Wolfram Sang wrote:
On Thu, Jun 14, 2012 at 07:33:37AM +1000, Benjamin Herrenschmidt wrote:quoted
On Wed, 2012-06-13 at 23:12 +0200, Wolfram Sang wrote:quoted
Currently, every driver has to do it on its own, but it should be done in the core, like we already do with board_info structs. Signed-off-by: Wolfram Sang <redacted> --- Based on v3.5-rc2. Only build tested, I don't have a OF based device around at the moment.Won't that conflict with i2c-powermac doing it its own way ?Yup :( I assume there is no chance that the powermac devicetree can be pre-processed to be compatible with of_i2c_register_devices?
That would be nasty and need a lot of testing on all sort of machines I don't have direct access to. Maybe we can set a flag somewhere to indicate to the core not to run the default probing on that controller ? Cheers, Ben.