mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] PCI: tegra194: allow enabling driver on Tegra234
@ 2026-01-02 19:09 Francesco Lavra
  2026-01-05 11:53 ` Jon Hunter
  0 siblings, 1 reply; 2+ messages in thread
From: Francesco Lavra @ 2026-01-02 19:09 UTC (permalink / raw)
  To: Jon Hunter, Manivannan Sadhasivam, thierry.reding,
	Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
	Bjorn Helgaas, Mayank Rana, Thomas Gleixner, Shradha Todi,
	Thippeswamy Havalige, Inochi Amaoto, Vidya Sagar, linux-pci,
	linux-kernel, linux-tegra @ vger . kernel . org

This driver runs (for both host and endpoint operation) also on Tegra234.
To allow enabling this driver on Tegra234, add a Kconfig dependency on
ARCH_TEGRA_234_SOC; in addition, amend the Kconfig help text to reflect the
fact that this driver is no longer exclusive to Tegra194.

Signed-off-by: Francesco Lavra <flavra@baylibre.com>
---
Changes from v1 [1]:
- added ARCH_TEGRA_234_SOC instead of replacing ARCH_TEGRA_194_SOC with
  ARCH_TEGRA (Jon)

[1] https://lore.kernel.org/linux-pci/20251126102530.4110067-1-flavra@baylibre.com/T/

 drivers/pci/controller/dwc/Kconfig | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
index 519b59422b47..cb8a9c049158 100644
--- a/drivers/pci/controller/dwc/Kconfig
+++ b/drivers/pci/controller/dwc/Kconfig
@@ -228,33 +228,33 @@ config PCIE_TEGRA194
 
 config PCIE_TEGRA194_HOST
 	tristate "NVIDIA Tegra194 (and later) PCIe controller (host mode)"
-	depends on ARCH_TEGRA_194_SOC || COMPILE_TEST
+	depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
 	depends on PCI_MSI
 	select PCIE_DW_HOST
 	select PHY_TEGRA194_P2U
 	select PCIE_TEGRA194
 	help
-	  Enables support for the PCIe controller in the NVIDIA Tegra194 SoC to
-	  work in host mode. There are two instances of PCIe controllers in
-	  Tegra194. This controller can work either as EP or RC. In order to
-	  enable host-specific features PCIE_TEGRA194_HOST must be selected and
-	  in order to enable device-specific features PCIE_TEGRA194_EP must be
-	  selected. This uses the DesignWare core.
+	  Enables support for the PCIe controller in the NVIDIA Tegra194 and
+	  later SoCs to work in host mode. This controller can work either as
+	  EP or RC. In order to enable host-specific features
+	  PCIE_TEGRA194_HOST must be selected and in order to enable
+	  device-specific features PCIE_TEGRA194_EP must be selected. This uses
+	  the DesignWare core.
 
 config PCIE_TEGRA194_EP
 	tristate "NVIDIA Tegra194 (and later) PCIe controller (endpoint mode)"
-	depends on ARCH_TEGRA_194_SOC || COMPILE_TEST
+	depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
 	depends on PCI_ENDPOINT
 	select PCIE_DW_EP
 	select PHY_TEGRA194_P2U
 	select PCIE_TEGRA194
 	help
-	  Enables support for the PCIe controller in the NVIDIA Tegra194 SoC to
-	  work in endpoint mode. There are two instances of PCIe controllers in
-	  Tegra194. This controller can work either as EP or RC. In order to
-	  enable host-specific features PCIE_TEGRA194_HOST must be selected and
-	  in order to enable device-specific features PCIE_TEGRA194_EP must be
-	  selected. This uses the DesignWare core.
+	  Enables support for the PCIe controller in the NVIDIA Tegra194 and
+	  later SoCs to work in endpoint mode. This controller can work either
+	  as EP or RC. In order to enable host-specific features
+	  PCIE_TEGRA194_HOST must be selected and in order to enable
+	  device-specific features PCIE_TEGRA194_EP must be selected. This uses
+	  the DesignWare core.
 
 config PCIE_NXP_S32G
 	bool "NXP S32G PCIe controller (host mode)"
-- 
2.39.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] PCI: tegra194: allow enabling driver on Tegra234
  2026-01-02 19:09 [PATCH v2] PCI: tegra194: allow enabling driver on Tegra234 Francesco Lavra
@ 2026-01-05 11:53 ` Jon Hunter
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Hunter @ 2026-01-05 11:53 UTC (permalink / raw)
  To: Francesco Lavra, Manivannan Sadhasivam, thierry.reding,
	Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
	Bjorn Helgaas, Mayank Rana, Thomas Gleixner, Shradha Todi,
	Thippeswamy Havalige, Inochi Amaoto, Vidya Sagar, linux-pci,
	linux-kernel, linux-tegra @ vger . kernel . org


On 02/01/2026 19:09, Francesco Lavra wrote:
> This driver runs (for both host and endpoint operation) also on Tegra234.
> To allow enabling this driver on Tegra234, add a Kconfig dependency on
> ARCH_TEGRA_234_SOC; in addition, amend the Kconfig help text to reflect the
> fact that this driver is no longer exclusive to Tegra194.
> 
> Signed-off-by: Francesco Lavra <flavra@baylibre.com>
> ---
> Changes from v1 [1]:
> - added ARCH_TEGRA_234_SOC instead of replacing ARCH_TEGRA_194_SOC with
>    ARCH_TEGRA (Jon)
> 
> [1] https://lore.kernel.org/linux-pci/20251126102530.4110067-1-flavra@baylibre.com/T/
> 
>   drivers/pci/controller/dwc/Kconfig | 28 ++++++++++++++--------------
>   1 file changed, 14 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
> index 519b59422b47..cb8a9c049158 100644
> --- a/drivers/pci/controller/dwc/Kconfig
> +++ b/drivers/pci/controller/dwc/Kconfig
> @@ -228,33 +228,33 @@ config PCIE_TEGRA194
>   
>   config PCIE_TEGRA194_HOST
>   	tristate "NVIDIA Tegra194 (and later) PCIe controller (host mode)"
> -	depends on ARCH_TEGRA_194_SOC || COMPILE_TEST
> +	depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
>   	depends on PCI_MSI
>   	select PCIE_DW_HOST
>   	select PHY_TEGRA194_P2U
>   	select PCIE_TEGRA194
>   	help
> -	  Enables support for the PCIe controller in the NVIDIA Tegra194 SoC to
> -	  work in host mode. There are two instances of PCIe controllers in
> -	  Tegra194. This controller can work either as EP or RC. In order to
> -	  enable host-specific features PCIE_TEGRA194_HOST must be selected and
> -	  in order to enable device-specific features PCIE_TEGRA194_EP must be
> -	  selected. This uses the DesignWare core.
> +	  Enables support for the PCIe controller in the NVIDIA Tegra194 and
> +	  later SoCs to work in host mode. This controller can work either as

Thanks for updating. However, this is really only Tegra194 and Tegra234 
only. Tegra264 is the next device after Tegra234 and it will not use 
this driver. PCIe support for Tegra264 is not upstream yet but hopefully 
will be soon but it does not use this driver.

Thanks
Jon

-- 
nvpublic


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-05 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-02 19:09 [PATCH v2] PCI: tegra194: allow enabling driver on Tegra234 Francesco Lavra
2026-01-05 11:53 ` Jon Hunter

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®