RE: kernel 2.5.20 on alpha (RE: [patch] Re: kernel 2.5.18 on alpha)

Paul Mackerras
2002-06-04T22:02:05Z

Patrick Mochel writes:

> The problem: bus_types are registered with the system, which intializes
> all the internal fields, making them ready for use. The PCI bus is being
> probed before the PCI bus type has been registered.

We hit this on PPC too.

> Can pcibios_init() be demoted to a device_initcall? This would delay
> probing until all the subsystems could be setup...

No, because we have device drivers that are initialized with a
device_initcall and which reasonably expect the PCI subsystem to be
set up before they are called.

I can see two solutions: either rename "unused_initcall" to "sys_init"
or something similar and use it for sys_bus_init, or else make an
alias for fs_initcall called "bus_init" or something and use that for
pcibios_init.

Paul.