x86: Write correct bus number for the irq router
authorBin Meng <bmeng.cn@gmail.com>
Tue, 23 Jun 2015 04:18:45 +0000 (12:18 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Jul 2015 00:03:17 +0000 (18:03 -0600)
We should write correct bus number to the PIRQ routing table for the
irq router from device tree, instead of hard-coded zero.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/irq.c

index 74b89ad2ff6c08d4b63fbc4b0244bcf6d13c6d92..7d5ccc1c651849de5759056f2a43bee07dac1c86 100644 (file)
@@ -161,7 +161,7 @@ static int create_pirq_routing_table(void)
        /* Populate the PIRQ table fields */
        rt->signature = PIRQ_SIGNATURE;
        rt->version = PIRQ_VERSION;
-       rt->rtr_bus = 0;
+       rt->rtr_bus = PCI_BUS(irq_router.bdf);
        rt->rtr_devfn = (PCI_DEV(irq_router.bdf) << 3) |
                        PCI_FUNC(irq_router.bdf);
        rt->rtr_vendor = PCI_VENDOR_ID_INTEL;