From: Bin Meng Date: Tue, 23 Jun 2015 04:18:45 +0000 (+0800) Subject: x86: Write correct bus number for the irq router X-Git-Tag: v2015.10-rc1~190^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c235436a3fbc8d6959c0acee276b7060e61f2e5;p=platform%2Fkernel%2Fu-boot.git x86: Write correct bus number for the irq router 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 Acked-by: Simon Glass --- diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c index 74b89ad2ff..7d5ccc1c65 100644 --- a/arch/x86/cpu/irq.c +++ b/arch/x86/cpu/irq.c @@ -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;