* [PATCH] PCI: iproc: Add PCI_DOMAIN dependency to PCI Kconfig
@ 2017-03-01 15:53 Jon Mason
2017-03-16 20:20 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Jon Mason @ 2017-03-01 15:53 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: linux-pci, linux-kernel, bcm-kernel-feedback-list, Jon Mason
From: Jon Mason <jonmason@broadcom.com>
2+ PCI devices fail to be discovered due to each bus having the same
PCI domain. This is because the domain defined in the device tree file
is not being added due to PCI_DOMAIN not being enabled. So, every PCI
bus has a domain of zero. When PCI_DOMAIN is selected by the Kconfig,
it picks-up the domain defined in the device tree file and everything
works as expected.
Since both PCIE_IPROC_PLATFORM and PCIE_IPROC_BCMA need PCI_DOMAIN,
moving it to PCIE_IPROC (so it can be automatically selected for both).
Signed-off-by: Jon Mason <jonmason@broadcom.com>
---
drivers/pci/host/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
index 898d2c4..82496b6 100644
--- a/drivers/pci/host/Kconfig
+++ b/drivers/pci/host/Kconfig
@@ -165,6 +165,7 @@ config PCI_VERSATILE
config PCIE_IPROC
tristate
+ select PCI_DOMAINS
help
This enables the iProc PCIe core controller support for Broadcom's
iProc family of SoCs. An appropriate bus interface driver needs
@@ -185,7 +186,6 @@ config PCIE_IPROC_BCMA
depends on ARM && (ARCH_BCM_IPROC || COMPILE_TEST)
select PCIE_IPROC
select BCMA
- select PCI_DOMAINS
default ARCH_BCM_5301X
help
Say Y here if you want to use the Broadcom iProc PCIe controller
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: iproc: Add PCI_DOMAIN dependency to PCI Kconfig
2017-03-01 15:53 [PATCH] PCI: iproc: Add PCI_DOMAIN dependency to PCI Kconfig Jon Mason
@ 2017-03-16 20:20 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2017-03-16 20:20 UTC (permalink / raw)
To: Jon Mason
Cc: Bjorn Helgaas, linux-pci, linux-kernel, bcm-kernel-feedback-list,
Jon Mason
On Wed, Mar 01, 2017 at 10:53:13AM -0500, Jon Mason wrote:
> From: Jon Mason <jonmason@broadcom.com>
>
> 2+ PCI devices fail to be discovered due to each bus having the same
> PCI domain. This is because the domain defined in the device tree file
> is not being added due to PCI_DOMAIN not being enabled. So, every PCI
> bus has a domain of zero. When PCI_DOMAIN is selected by the Kconfig,
> it picks-up the domain defined in the device tree file and everything
> works as expected.
>
> Since both PCIE_IPROC_PLATFORM and PCIE_IPROC_BCMA need PCI_DOMAIN,
> moving it to PCIE_IPROC (so it can be automatically selected for both).
>
> Signed-off-by: Jon Mason <jonmason@broadcom.com>
Applied to pci/host-iproc for v4.12, thanks, Jon!
> ---
> drivers/pci/host/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
> index 898d2c4..82496b6 100644
> --- a/drivers/pci/host/Kconfig
> +++ b/drivers/pci/host/Kconfig
> @@ -165,6 +165,7 @@ config PCI_VERSATILE
>
> config PCIE_IPROC
> tristate
> + select PCI_DOMAINS
> help
> This enables the iProc PCIe core controller support for Broadcom's
> iProc family of SoCs. An appropriate bus interface driver needs
> @@ -185,7 +186,6 @@ config PCIE_IPROC_BCMA
> depends on ARM && (ARCH_BCM_IPROC || COMPILE_TEST)
> select PCIE_IPROC
> select BCMA
> - select PCI_DOMAINS
> default ARCH_BCM_5301X
> help
> Say Y here if you want to use the Broadcom iProc PCIe controller
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-16 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-01 15:53 [PATCH] PCI: iproc: Add PCI_DOMAIN dependency to PCI Kconfig Jon Mason
2017-03-16 20:20 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®