public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
@ 2026-02-17  9:16 Krzysztof Kozlowski
  2026-02-17  9:16 ` [PATCH 1/3] soc: " Krzysztof Kozlowski
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-02-17  9:16 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Russell King
  Cc: linux-tegra, linux-kernel, linux-arm-kernel, Arnd Bergmann,
	Alexandre Belloni, Linus Walleij, Drew Fustini,
	Krzysztof Kozlowski

Renesas was fixed (thanks folks!), so let's fix this one myself.

By convention, only one globally selectable ARCH_PLATFORM is expected
for given SoC platform, defined in arch/arm64/Kconfig.platforms or
arch/arm/mach-*/Kconfig, because we target a single multi-platform
kernel image.

Dependency
==========
Further (2 and 3) patches depend on the first one, so should be taken
via one branch or some cross-branch-merges.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (3):
      soc: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
      ARM: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC
      arm64: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC

 arch/arm/configs/multi_v7_defconfig |  4 ----
 arch/arm/configs/tegra_defconfig    |  4 ----
 arch/arm64/configs/defconfig        |  7 -------
 drivers/soc/tegra/Kconfig           | 11 +++++++++++
 4 files changed, 11 insertions(+), 15 deletions(-)
---
base-commit: 350adaf7fde9fdbd9aeed6d442a9ae90c6a3ab97
change-id: 20260217-soc-tegra-arch-kconfig-f1df38427b95

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>


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

* [PATCH 1/3] soc: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
  2026-02-17  9:16 [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Krzysztof Kozlowski
@ 2026-02-17  9:16 ` Krzysztof Kozlowski
  2026-02-17  9:53   ` Russell King (Oracle)
  2026-02-17  9:16 ` [PATCH 2/3] ARM: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-02-17  9:16 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Russell King
  Cc: linux-tegra, linux-kernel, linux-arm-kernel, Arnd Bergmann,
	Alexandre Belloni, Linus Walleij, Drew Fustini,
	Krzysztof Kozlowski

By convention, only one globally selectable ARCH_PLATFORM is expected
for given SoC platform, defined in arch/arm64/Kconfig.platforms or
arch/arm/mach-*/Kconfig, because we target a single multi-platform
kernel image.

Platforms wanting different granularity, e.g. due to size constraints on
their devices, should be sure that globally only one ARCH_PLTAFORM is
selected in defconfig.  Change Tegra per-soc Kconfig entries to default
to ARCH_TEGRA allowing removal of these per-soc parts from defconfigs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

---

1. All further patches depend on this one.
2. Year ago after my complains Prabhakar fixed another case - Renesas -
   so with this patch we get rid of all single-ARCH offenders.
---
 drivers/soc/tegra/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/soc/tegra/Kconfig b/drivers/soc/tegra/Kconfig
index c0fc54c3cd35..a1cadfdb356c 100644
--- a/drivers/soc/tegra/Kconfig
+++ b/drivers/soc/tegra/Kconfig
@@ -6,6 +6,7 @@ if ARM
 
 config ARCH_TEGRA_2x_SOC
 	bool "Enable support for Tegra20 family"
+	default ARCH_TEGRA
 	select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
 	select ARM_ERRATA_720789
 	select ARM_ERRATA_754327 if SMP
@@ -23,6 +24,7 @@ config ARCH_TEGRA_2x_SOC
 
 config ARCH_TEGRA_3x_SOC
 	bool "Enable support for Tegra30 family"
+	default ARCH_TEGRA
 	select ARM_ERRATA_754322
 	select ARM_ERRATA_764369 if SMP
 	select PINCTRL_TEGRA30
@@ -37,6 +39,7 @@ config ARCH_TEGRA_3x_SOC
 
 config ARCH_TEGRA_114_SOC
 	bool "Enable support for Tegra114 family"
+	default ARCH_TEGRA
 	select ARM_ERRATA_798181 if SMP
 	select HAVE_ARM_ARCH_TIMER
 	select PINCTRL_TEGRA114
@@ -49,6 +52,7 @@ config ARCH_TEGRA_114_SOC
 
 config ARCH_TEGRA_124_SOC
 	bool "Enable support for Tegra124 family"
+	default ARCH_TEGRA
 	select HAVE_ARM_ARCH_TIMER
 	select PINCTRL_TEGRA124
 	select SOC_TEGRA_FLOWCTRL
@@ -65,6 +69,7 @@ if ARM64
 
 config ARCH_TEGRA_132_SOC
 	bool "NVIDIA Tegra132 SoC"
+	default ARCH_TEGRA
 	select PINCTRL_TEGRA124
 	select SOC_TEGRA_FLOWCTRL
 	select SOC_TEGRA_PMC
@@ -76,6 +81,7 @@ config ARCH_TEGRA_132_SOC
 
 config ARCH_TEGRA_210_SOC
 	bool "NVIDIA Tegra210 SoC"
+	default ARCH_TEGRA
 	select PINCTRL_TEGRA210
 	select SOC_TEGRA_FLOWCTRL
 	select SOC_TEGRA_PMC
@@ -95,6 +101,7 @@ config ARCH_TEGRA_210_SOC
 
 config ARCH_TEGRA_186_SOC
 	bool "NVIDIA Tegra186 SoC"
+	default ARCH_TEGRA
 	depends on !CPU_BIG_ENDIAN
 	select PINCTRL_TEGRA186
 	select MAILBOX
@@ -109,6 +116,7 @@ config ARCH_TEGRA_186_SOC
 
 config ARCH_TEGRA_194_SOC
 	bool "NVIDIA Tegra194 SoC"
+	default ARCH_TEGRA
 	depends on !CPU_BIG_ENDIAN
 	select MAILBOX
 	select PINCTRL_TEGRA194
@@ -118,6 +126,7 @@ config ARCH_TEGRA_194_SOC
 
 config ARCH_TEGRA_234_SOC
 	bool "NVIDIA Tegra234 SoC"
+	default ARCH_TEGRA
 	depends on !CPU_BIG_ENDIAN
 	select MAILBOX
 	select PINCTRL_TEGRA234
@@ -127,11 +136,13 @@ config ARCH_TEGRA_234_SOC
 
 config ARCH_TEGRA_241_SOC
 	bool "NVIDIA Tegra241 SoC"
+	default ARCH_TEGRA
 	help
 	  Enable support for the NVIDIA Tegra241 SoC.
 
 config ARCH_TEGRA_264_SOC
 	bool "NVIDIA Tegra264 SoC"
+	default ARCH_TEGRA
 	depends on !CPU_BIG_ENDIAN
 	select MAILBOX
 	select SOC_TEGRA_PMC

-- 
2.51.0


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

* [PATCH 2/3] ARM: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC
  2026-02-17  9:16 [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Krzysztof Kozlowski
  2026-02-17  9:16 ` [PATCH 1/3] soc: " Krzysztof Kozlowski
@ 2026-02-17  9:16 ` Krzysztof Kozlowski
  2026-02-17  9:16 ` [PATCH 3/3] arm64: " Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-02-17  9:16 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Russell King
  Cc: linux-tegra, linux-kernel, linux-arm-kernel, Arnd Bergmann,
	Alexandre Belloni, Linus Walleij, Drew Fustini,
	Krzysztof Kozlowski

All CONFIG_ARCH_TEGRA_2x_SOC-like symbols are now default for
ARCH_TEGRA, so drop redundant lines from defconfigs.  Tested with
comparing include/generated/autoconf.h.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

---

Depends on the previous pach.
---
 arch/arm/configs/multi_v7_defconfig | 4 ----
 arch/arm/configs/tegra_defconfig    | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index f75d75cf91c8..0985b8b00689 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -1142,10 +1142,6 @@ CONFIG_QCOM_SOCINFO=m
 CONFIG_QCOM_STATS=m
 CONFIG_QCOM_WCNSS_CTRL=m
 CONFIG_ROCKCHIP_IODOMAIN=y
-CONFIG_ARCH_TEGRA_2x_SOC=y
-CONFIG_ARCH_TEGRA_3x_SOC=y
-CONFIG_ARCH_TEGRA_114_SOC=y
-CONFIG_ARCH_TEGRA_124_SOC=y
 CONFIG_SOC_TI=y
 CONFIG_KEYSTONE_NAVIGATOR_QMSS=y
 CONFIG_KEYSTONE_NAVIGATOR_DMA=y
diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig
index 68aedaf92667..66157e9721ef 100644
--- a/arch/arm/configs/tegra_defconfig
+++ b/arch/arm/configs/tegra_defconfig
@@ -296,10 +296,6 @@ CONFIG_CROS_EC=y
 CONFIG_CROS_EC_I2C=m
 CONFIG_CROS_EC_SPI=m
 CONFIG_TEGRA_IOMMU_SMMU=y
-CONFIG_ARCH_TEGRA_2x_SOC=y
-CONFIG_ARCH_TEGRA_3x_SOC=y
-CONFIG_ARCH_TEGRA_114_SOC=y
-CONFIG_ARCH_TEGRA_124_SOC=y
 CONFIG_ARM_TEGRA_DEVFREQ=y
 CONFIG_MEMORY=y
 CONFIG_IIO=y

-- 
2.51.0


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

* [PATCH 3/3] arm64: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC
  2026-02-17  9:16 [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Krzysztof Kozlowski
  2026-02-17  9:16 ` [PATCH 1/3] soc: " Krzysztof Kozlowski
  2026-02-17  9:16 ` [PATCH 2/3] ARM: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC Krzysztof Kozlowski
@ 2026-02-17  9:16 ` Krzysztof Kozlowski
  2026-02-17 10:03 ` [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Thierry Reding
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2026-02-17  9:16 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Russell King
  Cc: linux-tegra, linux-kernel, linux-arm-kernel, Arnd Bergmann,
	Alexandre Belloni, Linus Walleij, Drew Fustini,
	Krzysztof Kozlowski

All CONFIG_ARCH_TEGRA_132_SOC-like symbols are now default for
ARCH_TEGRA, so drop redundant lines from defconfig.  Tested with
comparing include/generated/autoconf.h.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

---

Depends on the previous pach.
---
 arch/arm64/configs/defconfig | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index b67d5b1fc45b..08971b92303c 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1641,13 +1641,6 @@ CONFIG_QCOM_APR=m
 CONFIG_QCOM_ICC_BWMON=m
 CONFIG_QCOM_PBS=m
 CONFIG_ROCKCHIP_IODOMAIN=y
-CONFIG_ARCH_TEGRA_132_SOC=y
-CONFIG_ARCH_TEGRA_210_SOC=y
-CONFIG_ARCH_TEGRA_186_SOC=y
-CONFIG_ARCH_TEGRA_194_SOC=y
-CONFIG_ARCH_TEGRA_234_SOC=y
-CONFIG_ARCH_TEGRA_241_SOC=y
-CONFIG_ARCH_TEGRA_264_SOC=y
 CONFIG_TI_PRUSS=m
 CONFIG_OWL_PM_DOMAINS=y
 CONFIG_RASPBERRYPI_POWER=y

-- 
2.51.0


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

* Re: [PATCH 1/3] soc: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
  2026-02-17  9:16 ` [PATCH 1/3] soc: " Krzysztof Kozlowski
@ 2026-02-17  9:53   ` Russell King (Oracle)
  0 siblings, 0 replies; 8+ messages in thread
From: Russell King (Oracle) @ 2026-02-17  9:53 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Thierry Reding, Jonathan Hunter, linux-tegra, linux-kernel,
	linux-arm-kernel, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
	Drew Fustini

On Tue, Feb 17, 2026 at 10:16:36AM +0100, Krzysztof Kozlowski wrote:
> By convention, only one globally selectable ARCH_PLATFORM is expected
> for given SoC platform, defined in arch/arm64/Kconfig.platforms or
> arch/arm/mach-*/Kconfig, because we target a single multi-platform
> kernel image.
> 
> Platforms wanting different granularity, e.g. due to size constraints on
> their devices, should be sure that globally only one ARCH_PLTAFORM is

typo: ARCH_PLATFORM

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

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

* Re: [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
  2026-02-17  9:16 [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2026-02-17  9:16 ` [PATCH 3/3] arm64: " Krzysztof Kozlowski
@ 2026-02-17 10:03 ` Thierry Reding
  2026-02-19 17:46 ` Linus Walleij
  2026-02-19 17:46 ` Linus Walleij
  5 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2026-02-17 10:03 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Jonathan Hunter, Russell King, linux-tegra, linux-kernel,
	linux-arm-kernel, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
	Drew Fustini

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

On Tue, Feb 17, 2026 at 10:16:35AM +0100, Krzysztof Kozlowski wrote:
> Renesas was fixed (thanks folks!), so let's fix this one myself.
> 
> By convention, only one globally selectable ARCH_PLATFORM is expected
> for given SoC platform, defined in arch/arm64/Kconfig.platforms or
> arch/arm/mach-*/Kconfig, because we target a single multi-platform
> kernel image.

Sounds like a bit of a made-up convention to me. I don't have a strong
objection, though, so feel free to go ahead with this.

> Dependency
> ==========
> Further (2 and 3) patches depend on the first one, so should be taken
> via one branch or some cross-branch-merges.

Maybe we should ask Arnd to pick up this series into ARM SoC for 7.0?
Most ARM SoC stuff should be merged at this point and since this is
essentially just a bit of cleanup merging this now would avoid any
potential conflicts for 7.1.

In any case, the series:

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
  2026-02-17  9:16 [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2026-02-17 10:03 ` [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Thierry Reding
@ 2026-02-19 17:46 ` Linus Walleij
  2026-02-19 17:46 ` Linus Walleij
  5 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2026-02-19 17:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Thierry Reding, Jonathan Hunter, Russell King, linux-tegra,
	linux-kernel, linux-arm-kernel, Arnd Bergmann, Alexandre Belloni,
	Drew Fustini

On Tue, Feb 17, 2026 at 10:16 AM Krzysztof Kozlowski
<krzysztof.kozlowski@oss.qualcomm.com> wrote:

> Krzysztof Kozlowski (3):
>       soc: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
>       ARM: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC
>       arm64: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC

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

* Re: [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
  2026-02-17  9:16 [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2026-02-19 17:46 ` Linus Walleij
@ 2026-02-19 17:46 ` Linus Walleij
  5 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2026-02-19 17:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Thierry Reding, Jonathan Hunter, Russell King, linux-tegra,
	linux-kernel, linux-arm-kernel, Arnd Bergmann, Alexandre Belloni,
	Drew Fustini

On Tue, Feb 17, 2026 at 10:16 AM Krzysztof Kozlowski
<krzysztof.kozlowski@oss.qualcomm.com> wrote:

> Krzysztof Kozlowski (3):
>       soc: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra
>       ARM: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC
>       arm64: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC

Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij

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

end of thread, other threads:[~2026-02-19 17:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-17  9:16 [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Krzysztof Kozlowski
2026-02-17  9:16 ` [PATCH 1/3] soc: " Krzysztof Kozlowski
2026-02-17  9:53   ` Russell King (Oracle)
2026-02-17  9:16 ` [PATCH 2/3] ARM: tegra: defconfig: Drop redundant ARCH_TEGRA_foo_SOC Krzysztof Kozlowski
2026-02-17  9:16 ` [PATCH 3/3] arm64: " Krzysztof Kozlowski
2026-02-17 10:03 ` [PATCH 0/3] arm64: tegra: Make ARCH_TEGRA_SOC_FOO defaults for Nvidia Tegra Thierry Reding
2026-02-19 17:46 ` Linus Walleij
2026-02-19 17:46 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox