[patch] powerpc: add scanning of ebc bus to of_platform
Arnd Bergmann
arnd at arndb.de
Sat Dec 9 22:36:56 EST 2006
On Saturday 09 December 2006 11:04, Segher Boessenkool wrote:
>
> > I'd like other people opinions here... But I'm tempted to remove the
> > "default" list of bus types here and have it always be passed by the
> > platform... just in case.
I think for the flat device tree, we often have only type=soc,
or compatible=soc anyway, and there is a limited number of
internal bus types we want to probe on top of that for real
OF implementations.
> That's probably best -- no sense in registering devices
> on buses that the platform doesn't know how to drive!
But the platform doesn't need how to drive them, the device driver
needs to. All the platform needs to know is the fact that it can
deal with SOC devices that are automatically probed.
I'd much prefer to have the list in the same file that drives the
devices in the first place. It's probably also good to register
them as MODULE_DEVICE_TABLE(), for documentation purposes, even
if the driver can't be built as a module yet.
Arnd <><
More information about the Linuxppc-dev
mailing list