[PATCH 3/5] Float the pci bus number on MPC8641HPCN board.

Zhang Wei-r63237 Wei.Zhang at freescale.com
Fri Jun 1 16:45:03 EST 2007


Hi, Paul, 

> -----Original Message-----
> From: Paul Mackerras [mailto:paulus at samba.org] 
> 
> Kumar Gala writes:
> 
> > > That's my original doing. If there a PCI bridge card be 
> pluged into  
> > > PCI
> > > slot of hose0, I can not ensue the bus_offset number of hose1.
> > 
> > Ok, but can't we use hose0's last_busno and use that set hose1- 
> >  >first_busno & hose1->bus_offset?
> 
> Why do the bus numbers for hose0 and hose1 have to have any relation
> to each other at all?  Aren't they separate PCI domains?

There are lots of lagacy PCI codes in kernel, such as
pci_bus_to_hose(busnr). If two hose's bus number have overlaps,
pci_bus_to_hose() can not return the correct hose. And there will effect
/proc/pci and lspci tools.

Thanks!
Wei.



More information about the Linuxppc-dev mailing list