diff options
author | Bin Meng | 2015-06-23 12:18:45 +0800 |
---|---|---|
committer | Simon Glass | 2015-07-14 18:03:17 -0600 |
commit | 9c235436a3fbc8d6959c0acee276b7060e61f2e5 (patch) | |
tree | 447288c9672e3de4e499032e28af34c4d60305a1 /arch/x86/cpu/irq.c | |
parent | d402f922b291bb76e7e3b5c15dda7abf1ce33b85 (diff) |
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 <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/irq.c')
-rw-r--r-- | arch/x86/cpu/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c index 74b89ad2ff6..7d5ccc1c651 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; |