summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-06-23 12:18:45 +0800
committerSimon Glass <sjg@chromium.org>2015-07-14 18:03:17 -0600
commit9c235436a3fbc8d6959c0acee276b7060e61f2e5 (patch)
tree447288c9672e3de4e499032e28af34c4d60305a1 /arch
parentd402f922b291bb76e7e3b5c15dda7abf1ce33b85 (diff)
downloadtalos-obmc-uboot-9c235436a3fbc8d6959c0acee276b7060e61f2e5.tar.gz
talos-obmc-uboot-9c235436a3fbc8d6959c0acee276b7060e61f2e5.zip
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')
-rw-r--r--arch/x86/cpu/irq.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud