diff mbox series

PCI: cadence: Fix TI J721E PCIe SoC dependencies

Message ID 20231220113214.413632-1-pbrobinson@gmail.com
State New
Headers show
Series PCI: cadence: Fix TI J721E PCIe SoC dependencies | expand

Commit Message

Peter Robinson Dec. 20, 2023, 11:32 a.m. UTC
The J721E PCIe is hardware specific to the TI SoC parts
so add a depenency on that so it's available for those
SoC parts and for compile testing but not necessarily
everyone who enables the Cadence PCIe controller.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
 drivers/pci/controller/cadence/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Bjorn Helgaas Dec. 26, 2023, 11:59 p.m. UTC | #1
On Wed, Dec 20, 2023 at 11:32:08AM +0000, Peter Robinson wrote:
> The J721E PCIe is hardware specific to the TI SoC parts
> so add a depenency on that so it's available for those

dependency

> SoC parts and for compile testing but not necessarily
> everyone who enables the Cadence PCIe controller.

Wrap to fill 75 columns.

The subject could possibly be more specific than "fix", e.g.,

  PCI: cadence: Make TI J721E depend on ARCH_K3

> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---
>  drivers/pci/controller/cadence/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pci/controller/cadence/Kconfig b/drivers/pci/controller/cadence/Kconfig
> index 291d12711363..1d5a70c9055e 100644
> --- a/drivers/pci/controller/cadence/Kconfig
> +++ b/drivers/pci/controller/cadence/Kconfig
> @@ -47,6 +47,7 @@ config PCI_J721E
>  
>  config PCI_J721E_HOST
>  	bool "TI J721E PCIe controller (host mode)"
> +	depends on ARCH_K3 || COMPILE_TEST
>  	depends on OF
>  	select PCIE_CADENCE_HOST
>  	select PCI_J721E
> @@ -57,6 +58,7 @@ config PCI_J721E_HOST
>  
>  config PCI_J721E_EP
>  	bool "TI J721E PCIe controller (endpoint mode)"
> +	depends on ARCH_K3 || COMPILE_TEST
>  	depends on OF
>  	depends on PCI_ENDPOINT
>  	select PCIE_CADENCE_EP
> -- 
> 2.43.0
>
diff mbox series

Patch

diff --git a/drivers/pci/controller/cadence/Kconfig b/drivers/pci/controller/cadence/Kconfig
index 291d12711363..1d5a70c9055e 100644
--- a/drivers/pci/controller/cadence/Kconfig
+++ b/drivers/pci/controller/cadence/Kconfig
@@ -47,6 +47,7 @@  config PCI_J721E
 
 config PCI_J721E_HOST
 	bool "TI J721E PCIe controller (host mode)"
+	depends on ARCH_K3 || COMPILE_TEST
 	depends on OF
 	select PCIE_CADENCE_HOST
 	select PCI_J721E
@@ -57,6 +58,7 @@  config PCI_J721E_HOST
 
 config PCI_J721E_EP
 	bool "TI J721E PCIe controller (endpoint mode)"
+	depends on ARCH_K3 || COMPILE_TEST
 	depends on OF
 	depends on PCI_ENDPOINT
 	select PCIE_CADENCE_EP