Initcall ordering

Gary Thomas gary at mlbassoc.com
Sat Apr 24 07:54:17 EST 2010


On 04/23/2010 09:56 AM, Gary Thomas wrote:
> I'm having trouble with the I2C devices on my 8347 platform.
> The problem is that I2C device probe() functions are only called
> once, as the I2C bus is being initialized (in this case fsl_i2c_init())
> I have 2 devices on this bus, one device gets it's initcall
> before fsl_i2c_init, the second one does not :-( This means
> that the second device is never probed.
>
> What can I do about this? Has the problem been seen before?
> I can provide more data, as required.
>
> note: I'm currently using 2.6.28, but I will be moving to 2.6.32
> soon in case it matters, but I'd rather find/understand/fix this
> in 2.6.28 if possible.

A possibly related question: how can I2C devices work as
modules when the device address + probe info is in the device
tree?  Given the behaviour I'm seeing (I2C device probes only
happen when the bus is enumerated), how is this supposed to
work?

... maybe I'm missing something fundamental?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


More information about the Linuxppc-dev mailing list