Thread (17 messages) 17 messages, 4 authors, 2011-03-29
STALE5540d

Re: [PATCH] Input: tca6416-keypad: Change to module_init()

From: Mark Brown <hidden>
Date: 2011-03-22 16:59:07
Also in: linux-arm-kernel, linux-i2c, linux-omap, linux-sh

On Wed, Mar 23, 2011 at 01:51:02AM +0900, Magnus Damm wrote:
I'm not sure if this is i2c specific though - in general you probably
need to register the parent bus driver first.
This was my original question - I'm not aware of any reason why you
should need to register the driver for the specific bus first, it seems
odd.
I've seen some SH-Mobile designs with PMICs, and they all use a
dedicated i2c bus.
It's the most common bus for PMICs but some use SPI for performance
reasons, especially if they integrate other mixed signal functionality
such as touchscreen controllers that might be high volume.
quoted
In general embedded platforms register I2C early as things like PMICs
typically hang off them.  Grant was trying to push people to use
deferred registration for this stuff but it didn't happen yet and I'd
personally be more comfortable with more infastructure supporting that.
The dependency tracking is a bit primitive with only initcalls. I
wouldn't mind something like this:
That's not a general solution as it doesn't cover things like cross
dependencies between devices on the same bus type.  You really want to
be able to say "I depend on this set of other devices" somehow, the
proposal from Grant that I'm talking about was to only register devices
once their dependencies had appeared which solves the issue but is a bit
manual for the board files.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help