[POWERPC] celleb: Fix support for multiple PCI domains
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Wed, 9 May 2007 07:34:08 +0000 (17:34 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 10 May 2007 11:28:12 +0000 (21:28 +1000)
Celleb has multiple PCI host bridges (phbs).  Previous boot logic gives
non-overlapped bus IDs between PCI host bridges so you can identify
PHB by bus ID.  But newer boot logic gives same bus ID between PHBs (it
gives bus ID 0 as root bus.) So we have to set 'phb->buid' as
non-zero.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/celleb/pci.c

index d1adf34..e9ac19c 100644 (file)
@@ -457,6 +457,7 @@ int __devinit celleb_setup_phb(struct pci_controller *phb)
 
        pr_debug("PCI: celleb_setup_phb() %s\n", name);
        phb_set_bus_ranges(dev, phb);
+       phb->buid = 1;
 
        if (strcmp(name, "epci") == 0) {
                phb->ops = &celleb_epci_ops;