> > >>> i2c should really be initialised before framebuffer devices because
That's only one of many examples. The more general reason to
want to change the position of I2C so it's early in the link
order (like many other "system" busses) is to ensure that I2C
drivers can rely on that initialization no matter where they
are in *link order* ... it's not just an init sequence issue.
If they happen to sit outside the I2C tree and *before* it in
link order, things will misbehave.
Agreed init sequencing declarations should Do The Right Thing.
But those declarations are of two types: *_initcall() stuff,
and link order. We've seen cases where the initcalls alone are
insufficient.
The gpiochip_add() function needed a bit of care to ensure that
platforms can use GPIOs well before tasking and IRQs work, and
thus before any initcalls run. So that's not a problem.
Re PCI ... someone could investigate.
For the record, the OMAP tree puts I2C in the link order
later than this. It wasn't moved earlier mostly out of
paranoia like yours. (See below. I'm not sure why "cbus"
is listed twice, or what OMAP boards have similar issues
with serio ...)
- Dave
# we also need input/serio early so serio bus is initialized by the time
# serial drivers start registering their serio ports
obj-$(CONFIG_SERIO) += input/serio/
obj-y += serial/
obj-$(CONFIG_PARPORT) += parport/
obj-y += base/ block/ misc/ mfd/ net/ media/ cbus/
obj-y += i2c/
obj-y += cbus/
obj-$(CONFIG_ARCH_OMAP) += dsp/dspgateway/
obj-$(CONFIG_NUBUS) += nubus/
obj-$(CONFIG_ATM) += atm/
obj-y += macintosh/
obj-$(CONFIG_IDE) += ide/
obj-$(CONFIG_SCSI) += scsi/
obj-$(CONFIG_ATA) += ata/
obj-$(CONFIG_FUSION) += message/
--