How does this work for embedded devices where the same architecture is
used in many different configurations? For example, we have a PXA270
setup where we need i2c early, but many other PXA setups do not, so
making i2c-pxa subsys_initcall to support a single board is maybe the
wrong way to go?
Probably not :-). I didn't have hardware to test, it was just easy
to put together the patch. I figured a change like this would
require extensive testing anyway, since it is bound to break
some obscure setup at least.
I still think that possibly a better solution is to allow the link
order for the driver subsystems to be configured somehow. At least
for the embedded space this is useful if a particular board has
some dependency on i2c, spi or some other subsystem being available
early on, then it can be configured on a per board basis, rather
than per arch, or per driver.
I'm not sure how to accomplish this though, I don't think Kconfig
lends it self to this sort of thing very well, and I don't
understand the kernel build process well enough to attempt it
myself.
~Ryan
--