summaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 6d7ab9bb0d5a..1e34d211389a 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -15,6 +15,7 @@
15#include <linux/pci-aspm.h> 15#include <linux/pci-aspm.h>
16#include <linux/aer.h> 16#include <linux/aer.h>
17#include <linux/acpi.h> 17#include <linux/acpi.h>
18#include <linux/irqdomain.h>
18#include <asm-generic/pci-bridge.h> 19#include <asm-generic/pci-bridge.h>
19#include "pci.h" 20#include "pci.h"
20 21
@@ -675,6 +676,20 @@ static struct irq_domain *pci_host_bridge_msi_domain(struct pci_bus *bus)
675 if (!d) 676 if (!d)
676 d = pci_host_bridge_acpi_msi_domain(bus); 677 d = pci_host_bridge_acpi_msi_domain(bus);
677 678
679#ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
680 /*
681 * If no IRQ domain was found via the OF tree, try looking it up
682 * directly through the fwnode_handle.
683 */
684 if (!d) {
685 struct fwnode_handle *fwnode = pci_root_bus_fwnode(bus);
686
687 if (fwnode)
688 d = irq_find_matching_fwnode(fwnode,
689 DOMAIN_BUS_PCI_MSI);
690 }
691#endif
692
678 return d; 693 return d;
679} 694}
680 695