Skip to contentSkip to conversation

pci: controller: tegra194: remove dependency on Tegra194 SoC

PATCH In review Francesco Lavra 4 participants 15 messages Nov 26, 2025 – Jan 5

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: controller: tegra194: remove dependency on Tegra194 SoC

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

Fixes a54e19073718 ("PCI: tegra194: Add Tegra234 PCIe support")
---
 drivers/pci/controller/dwc/Kconfig | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/pci/controller/dwc/Kconfig +14 -14
index ff6b6d9e18ec..1123752e43ef 100644
@@ -227,33 +227,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 || 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 || 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_DW_PLAT
 	bool
Signature · 1 line
2.39.5
#1 lore raw

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Thierry, Jon, thoughts?

- Mani

Quoted 61 lines
Fixes a54e19073718 ("PCI: tegra194: Add Tegra234 PCIe support")
---
 drivers/pci/controller/dwc/Kconfig | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/pci/controller/dwc/Kconfig +14 -14
index ff6b6d9e18ec..1123752e43ef 100644
@@ -227,33 +227,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 || 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 || 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_DW_PLAT
 	bool
Signature · 1 line
2.39.5
Signature · 1 line
மணிவண்ணன் சதாசிவம்
maintainer
#2 lore raw
Quoted 11 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

Quoted 3 lines

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Cheers
Jon

Signature · 1 line
nvpublic
#3 lore raw
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

- Mani

Signature · 1 line
மணிவண்ணன் சதாசிவம்
#4 lore raw
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Kind regards,
Niklas

maintainer Acked-by
#5 lore raw
Quoted 43 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

Quoted 7 lines

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Thanks!
Jon

Signature · 1 line
nvpublic
#6 lore raw
Quoted 49 lines · Jon Hunter
Quoted 46 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

Quoted 8 lines
Quoted 4 lines

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

in the above patch?

- Mani

Signature · 1 line
மணிவண்ணன் சதாசிவம்
#7 lore raw
Quoted 55 lines · Manivannan Sadhasivam
Quoted 54 lines · Jon Hunter
Quoted 50 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Quoted 7 lines
Quoted 3 lines

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

This is exactly what I originally suggested to Vidya:
https://lore.kernel.org/linux-pci/Z6XjWJd9jm0HHNXW@ryzen/

Quoted 2 lines

in the above patch?

The above patch instead has:

depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

I don't know why Vidya did not use my suggestion exactly, but I guess I assumed that he had a reason not to use my suggestion exactly.

Kind regards,
Niklas

#8 lore raw
Quoted 60 lines · Niklas Cassel
Quoted 59 lines · Manivannan Sadhasivam
Quoted 57 lines · Jon Hunter
Quoted 43 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

Quoted 7 lines

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Quoted 7 lines
Quoted 3 lines

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

This is exactly what I originally suggested to Vidya:
https://lore.kernel.org/linux-pci/Z6XjWJd9jm0HHNXW@ryzen/

Ah, I didn't notice your reply, as well as mine at that time :)

Quoted 11 lines
Quoted 3 lines

in the above patch?

The above patch instead has:

depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

I don't know why Vidya did not use my suggestion exactly, but I guess I assumed that he had a reason not to use my suggestion exactly.

Maybe it got missed? If Jon could confirm, I'll make the change and apply it.

- Mani

Signature · 1 line
மணிவண்ணன் சதாசிவம்
maintainer
#9 lore raw
In reply to Niklas Cassel
Quoted 69 lines · Niklas Cassel
Quoted 55 lines · Manivannan Sadhasivam
Quoted 54 lines · Jon Hunter
Quoted 50 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Quoted 7 lines
Quoted 3 lines

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

This is exactly what I originally suggested to Vidya:
https://lore.kernel.org/linux-pci/Z6XjWJd9jm0HHNXW@ryzen/

Quoted 1 line
Quoted 8 lines
Quoted 1 line

in the above patch?

The above patch instead has:

depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

I don't know why Vidya did not use my suggestion exactly, but I guess I assumed that he had a reason not to use my suggestion exactly.

Looking 0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency") we ended up just merging ...

drivers/phy/tegra/Kconfig +1 -1
index f30cfb42b210..342fb736da4b 100644
@@ -13,7 +13,7 @@ config PHY_TEGRA_XUSB
 
 config PHY_TEGRA194_P2U
        tristate "NVIDIA Tegra194 PIPE2UPHY PHY driver"
-       depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
+       depends on ARCH_TEGRA || COMPILE_TEST
        select GENERIC_PHY
        help
 

So I guess we could just merge Francesco's original suggestion for consistency. Otherwise I would be happy with ...

depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

Jon

Signature · 1 line
nvpublic
#10 lore raw
Quoted 98 lines · Jon Hunter
Quoted 69 lines · Niklas Cassel
Quoted 55 lines · Manivannan Sadhasivam
Quoted 54 lines · Jon Hunter
Quoted 50 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Quoted 7 lines
Quoted 3 lines

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

This is exactly what I originally suggested to Vidya:
https://lore.kernel.org/linux-pci/Z6XjWJd9jm0HHNXW@ryzen/

Quoted 1 line
Quoted 8 lines
Quoted 1 line

in the above patch?

The above patch instead has:

depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

I don't know why Vidya did not use my suggestion exactly, but I guess I assumed that he had a reason not to use my suggestion exactly.

Looking 0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency") we ended up just merging ...

drivers/phy/tegra/Kconfig +1 -1
index f30cfb42b210..342fb736da4b 100644
@@ -13,7 +13,7 @@ config PHY_TEGRA_XUSB
 config PHY_TEGRA194_P2U
        tristate "NVIDIA Tegra194 PIPE2UPHY PHY driver"
-       depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
+       depends on ARCH_TEGRA || COMPILE_TEST
        select GENERIC_PHY
        help
 

So I guess we could just merge Francesco's original suggestion for consistency. Otherwise I would be happy with ...

Quoted 2 lines

depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

I made the above change applied Vidya's patch. Thanks Jon and Niklas!

- Mani

Signature · 1 line
மணிவண்ணன் சதாசிவம்
maintainer Acked-by
#11 lore raw
Quoted 96 lines · Manivannan Sadhasivam
Quoted 95 lines · Jon Hunter
Quoted 69 lines · Niklas Cassel
Quoted 55 lines · Manivannan Sadhasivam
Quoted 54 lines · Jon Hunter
Quoted 50 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Quoted 7 lines
Quoted 3 lines

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

This is exactly what I originally suggested to Vidya:
https://lore.kernel.org/linux-pci/Z6XjWJd9jm0HHNXW@ryzen/

Quoted 1 line
Quoted 8 lines
Quoted 1 line

in the above patch?

The above patch instead has:

depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

I don't know why Vidya did not use my suggestion exactly, but I guess I assumed that he had a reason not to use my suggestion exactly.

Looking 0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency") we ended up just merging ...

drivers/phy/tegra/Kconfig +1 -1
index f30cfb42b210..342fb736da4b 100644
@@ -13,7 +13,7 @@ config PHY_TEGRA_XUSB
  config PHY_TEGRA194_P2U
         tristate "NVIDIA Tegra194 PIPE2UPHY PHY driver"
-       depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
+       depends on ARCH_TEGRA || COMPILE_TEST
         select GENERIC_PHY
         help
 
Quoted 7 lines
Quoted 5 lines

So I guess we could just merge Francesco's original suggestion for consistency. Otherwise I would be happy with ...

  depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

I made the above change applied Vidya's patch. Thanks Jon and Niklas!

Thanks! Feel free to add my ...

Jon

Signature · 1 line
nvpublic
#12 lore raw
Quoted 101 lines · Jon Hunter
Quoted 99 lines · Manivannan Sadhasivam
Quoted 98 lines · Jon Hunter
Quoted 69 lines · Niklas Cassel
Quoted 55 lines · Manivannan Sadhasivam
Quoted 54 lines · Jon Hunter
Quoted 50 lines · Niklas Cassel
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

We already have a patch from Vidya:
[PATCH V4] PCI: dwc: tegra194: Broaden architecture dependency that was sent 2025-05-08

Back then, the reason why it wasn't merged was because it required a similar change to the PHY driver to go in first:
https://lore.kernel.org/linux-pci/[email protected]/

The PHY driver change was merged in v6.16:
0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency")

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Quoted 7 lines
Quoted 3 lines

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

This is exactly what I originally suggested to Vidya:
https://lore.kernel.org/linux-pci/Z6XjWJd9jm0HHNXW@ryzen/

Quoted 1 line
Quoted 8 lines
Quoted 1 line

in the above patch?

The above patch instead has:

depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

I don't know why Vidya did not use my suggestion exactly, but I guess I assumed that he had a reason not to use my suggestion exactly.

Looking 0c2228731974 ("phy: tegra: p2u: Broaden architecture dependency") we ended up just merging ...

drivers/phy/tegra/Kconfig +1 -1
index f30cfb42b210..342fb736da4b 100644
@@ -13,7 +13,7 @@ config PHY_TEGRA_XUSB
  config PHY_TEGRA194_P2U
         tristate "NVIDIA Tegra194 PIPE2UPHY PHY driver"
-       depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC || COMPILE_TEST
+       depends on ARCH_TEGRA || COMPILE_TEST
         select GENERIC_PHY
         help
 

So I guess we could just merge Francesco's original suggestion for consistency. Otherwise I would be happy with ...

Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
  depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

I made the above change applied Vidya's patch. Thanks Jon and Niklas!

Thanks! Feel free to add my ...

Did that already :)

- Mani

Signature · 1 line
மணிவண்ணன் சதாசிவம்
#13 lore raw
In reply to Niklas Cassel
Quoted 18 lines · Niklas Cassel
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

So, I think we could just merge:
https://lore.kernel.org/linux-pci/[email protected]/

(Assuming it still applies.)

Quoted 7 lines
Quoted 3 lines

Yes it does and applying Sagar's patch is fine with me. So it you want to apply Sagar's patch please add my ...

Don't we need:

	depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

This is exactly what I originally suggested to Vidya:
https://lore.kernel.org/linux-pci/Z6XjWJd9jm0HHNXW@ryzen/

Quoted 1 line
Quoted 8 lines
Quoted 1 line

in the above patch?

The above patch instead has:

depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

I don't know why Vidya did not use my suggestion exactly, but I guess I assumed that he had a reason not to use my suggestion exactly.

Looking at drivers/pci/controller/dwc/Kconfig,
there are a lot of:

depends on OF && (ARM64 || COMPILE_TEST)

So I think Vidya simply followed this pattern and instead did:
depends on ARCH_TEGRA && (ARM64 || COMPILE_TEST)

But, since we don't have an explicit "depends on OF" in these entries, I do think that:

depends on (ARCH_TEGRA && ARM64) || COMPILE_TEST

is slightly more correct. (Since if there was a hard requirement on OF, it would have been there already).

Kind regards,
Niklas

maintainer
#14 lore raw
In reply to Manivannan Sadhasivam
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Jon Hunter
Quoted 13 lines · Manivannan Sadhasivam

On Wed, Nov 26, 2025 at 11:25:30AM +0100, Francesco Lavra wrote:

+ Tegra maintainers

Quoted 6 lines

This driver runs (for both host and endpoint operation) also on other Tegra SoCs (e.g. Tegra234).
Replace the Kconfig dependency on ARCH_TEGRA_194_SOC with a more generic dependency on ARCH_TEGRA; in addition, amend the Kconfig help text to reflect the fact that this driver is no longer exclusive to Tegra194.

I vaguely remember asking about this a while back during some other patch review and I don't remember what we concluded.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Thierry, Jon, thoughts?

So ARCH_TEGRA means that this can be enabled for the legacy 32-bit Tegra devices as well as the current 64-bit Tegra devices (such as Tegra194). Given that this driver is only used for Tegra194 and Tegra234, it seems it would be better to only enable this for Tegra194 and Tegra234 instead of any Tegra.

Quoted 8 lines

The dependency means, whenever someone tries to enable PCIE_TEGRA194_HOST, ARCH_TEGRA should be enabled. So as long as someone not trying to enable PCIE_TEGRA194_HOST for 32bit Tegra systems, ARCH_TEGRA should work fine and PCIE_TEGRA194_HOST is not selected by arch/arm/configs/tegra_defconfig. So I don't see any blocker with this patch. In fact, many other archs do the same.

But I don't like extending the Kconfig with per SoC dependency as it won't scale.

Yes normally it does not. However, in this case it will only be used for Tegra194 and Tegra234 and not any later devices.

Jon

Signature · 1 line
nvpublic