Subject: Re: [PATCH] ppc32: 3/2 HDPU platform fix PCI bus 1 enumeration

From: Brian Waite <[email-masked]>
Date: Thu, 17 Mar 2005 11:21:48 -0500

Lets try this again....

Signed-off-by: Brian Waite <[email-masked]>
Add the proper bus enumeration code that was missing for bus 1.

===== arch/ppc/platforms/hdpu.c 1.2 vs 1.3 =====
--- 1.2/arch/ppc/platforms/hdpu.c       Thu Mar 17 10:42:34 2005
+++ 1.3/arch/ppc/platforms/hdpu.c       Thu Mar 17 11:07:38 2005
@@ -260,6 +260,17 @@
        ppc_md.pci_swizzle = common_swizzle;
        ppc_md.pci_map_irq = hdpu_map_irq;

+       mv64x60_set_bus(&bh, 0, 0);
+       bh.hose_a->first_busno = 0;
+       bh.hose_a->last_busno = 0xff;
+       bh.hose_a->last_busno = pciauto_bus_scan(bh.hose_a, 0);
+
+       bh.hose_b->first_busno = bh.hose_a->last_busno + 1;
+       mv64x60_set_bus(&bh, 1, bh.hose_b->first_busno);
+       bh.hose_b->last_busno = 0xff;
+       bh.hose_b->last_busno = pciauto_bus_scan(bh.hose_b,
+               bh.hose_b->first_busno);
+
        ppc_md.pci_exclude_device = mv64x60_pci_exclude_device;

        hdpu_cpustate_set(CPUSTATE_KERNEL_MAJOR | CPUSTATE_KERNEL_INIT_REG);