Arnd Bergmann wrote: > On Tuesday 31 July 2007, Dave Jiang wrote: >> Actually it seems that for me to grab the interrupt number I have to do the >> platform device creation in fsl_soc.c and call arch_init() instead of doing >> it >> from fsl_add_bridge(). fsl_add_bridge() is called way too early and the mpic >> interrupt mapping has not been setup yet for me to acquire the interrupt >> number >> from of_interrupt_to_resource() call. > > I think in general, it would be a better solution to have the add_bridge > code called much later, like we do with the 64 bit PCI code when > using an of_device for the PCI bridge. I don't think it's easy to > do though, so that shouldn't stop you from doing it the other way. > > Please make the platform_device a child of the PCI host bridge though, > so it doesn't need to change if/when the PCI initialization gets changed > to allow doing it from fsl_pci. >
Doh! I sent out the reworked patches right before your comments. Do you happen to know where I can find an example of how to do this? In regards to making a platform_device a child of the PCI host bridge that is.... Thanks! -- ------------------------------------------------------ Dave Jiang Software Engineer MontaVista Software, Inc. http://www.mvista.com ------------------------------------------------------ _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev