Skip to content
Snippets Groups Projects
Commit 9c235436 authored by Bin Meng's avatar Bin Meng Committed by Simon Glass
Browse files

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: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent d402f922
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ static int create_pirq_routing_table(void) ...@@ -161,7 +161,7 @@ static int create_pirq_routing_table(void)
/* Populate the PIRQ table fields */ /* Populate the PIRQ table fields */
rt->signature = PIRQ_SIGNATURE; rt->signature = PIRQ_SIGNATURE;
rt->version = PIRQ_VERSION; 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) | rt->rtr_devfn = (PCI_DEV(irq_router.bdf) << 3) |
PCI_FUNC(irq_router.bdf); PCI_FUNC(irq_router.bdf);
rt->rtr_vendor = PCI_VENDOR_ID_INTEL; rt->rtr_vendor = PCI_VENDOR_ID_INTEL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment