Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1284394 > unrolled thread
| Started by | jakeo@microsoft.com |
|---|---|
| First post | 2015-12-05 01:40 +0100 |
| Last post | 2015-12-05 03:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v7 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle jakeo@microsoft.com - 2015-12-05 01:40 +0100
Re: [PATCH v7 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle kbuild test robot <lkp@intel.com> - 2015-12-05 03:00 +0100
| From | jakeo@microsoft.com |
|---|---|
| Date | 2015-12-05 01:40 +0100 |
| Subject | [PATCH v7 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle |
| Message-ID | <qC93k-1tU-3@gated-at.bofh.it> |
From: Jake Oshins <jakeo@microsoft.com>
This patch adds a second way of finding an IRQ domain associated with
a root PCI bus. After looking to see if one can be found through
the OF tree, it attempts to look up the IRQ domain through an
fwnode_handle stored in the pci_sysdata struct.
Signed-off-by: Jake Oshins <jakeo@microsoft.com>
---
drivers/pci/probe.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index edb1984..8f3d056 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -673,6 +673,20 @@ static struct irq_domain *pci_host_bridge_msi_domain(struct pci_bus *bus)
*/
d = pci_host_bridge_of_msi_domain(bus);
+#ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
+ /*
+ * If no IRQ domain was found via the OF tree, try looking it up
+ * directly through the fwnode_handle.
+ */
+ if (!d) {
+ struct fwnode_handle *fwnode = pci_root_bus_fwnode(bus);
+
+ if (fwnode)
+ d = irq_find_matching_fwnode(fwnode,
+ DOMAIN_BUS_PCI_MSI);
+ }
+#endif
+
return d;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Date | 2015-12-05 03:00 +0100 |
| Subject | Re: [PATCH v7 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle |
| Message-ID | <qCaiK-2bH-3@gated-at.bofh.it> |
| In reply to | #1284394 |
[Multipart message — attachments visible in raw view] — view raw
Hi Jake,
[auto build test ERROR on pci/next]
[also build test ERROR on v4.4-rc3 next-20151203]
url: https://github.com/0day-ci/linux/commits/jakeo-microsoft-com/PCI-hv-New-paravirtual-PCI-front-end-for-Hyper-V-VMs/20151205-083943
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64
All error/warnings (new ones prefixed by >>):
drivers/pci/probe.c: In function 'pci_host_bridge_msi_domain':
>> drivers/pci/probe.c:682:10: error: implicit declaration of function 'pci_root_bus_fwnode' [-Werror=implicit-function-declaration]
struct fwnode_handle *fwnode = pci_root_bus_fwnode(bus);
^
>> drivers/pci/probe.c:682:34: warning: initialization makes pointer from integer without a cast
struct fwnode_handle *fwnode = pci_root_bus_fwnode(bus);
^
>> drivers/pci/probe.c:685:4: error: implicit declaration of function 'irq_find_matching_fwnode' [-Werror=implicit-function-declaration]
d = irq_find_matching_fwnode(fwnode,
^
>> drivers/pci/probe.c:686:12: error: 'DOMAIN_BUS_PCI_MSI' undeclared (first use in this function)
DOMAIN_BUS_PCI_MSI);
^
drivers/pci/probe.c:686:12: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +/pci_root_bus_fwnode +682 drivers/pci/probe.c
676 #ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
677 /*
678 * If no IRQ domain was found via the OF tree, try looking it up
679 * directly through the fwnode_handle.
680 */
681 if (!d) {
> 682 struct fwnode_handle *fwnode = pci_root_bus_fwnode(bus);
683
684 if (fwnode)
> 685 d = irq_find_matching_fwnode(fwnode,
> 686 DOMAIN_BUS_PCI_MSI);
687 }
688 #endif
689
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web