Skip to contentSkip to conversation

arm64: Kconfig: provide a top-level switch for Microchip platforms

PATCH Applied Bartosz Golaszewski 7 participants 15 messages Feb 26 – Mar 18 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Kconfig: provide a top-level switch for Microchip platforms

Microchip is the only platform that doesn't have a top-level switch for disabling all SoC families. Align it with other platforms and update the arm64 defconfig to keep the default config the same.

---
 arch/arm64/Kconfig.platforms | 10 ++++------
 arch/arm64/configs/defconfig |  1 +
 2 files changed, 5 insertions(+), 6 deletions(-)
arch/arm64/Kconfig.platforms +4 -6
index 54eb1d7fd419b..72c812e76b0b1 100644
@@ -188,16 +188,15 @@ config ARCH_MESON
 	  This enables support for the arm64 based Amlogic SoCs
 	  such as the s905, S905X/D, S912, A113X/D or S905X/D2
 
-menu "Microchip SoC support"
+menuconfig ARCH_MICROCHIP
+	bool "Microchip SoC support"
 
-config ARCH_MICROCHIP
-	bool
+if ARCH_MICROCHIP
 
 config ARCH_LAN969X
 	bool "Microchip LAN969X SoC family"
 	select PINCTRL
 	select DW_APB_TIMER_OF
-	select ARCH_MICROCHIP
 	help
 	  This enables support for the Microchip LAN969X ARMv8-based
 	  SoC family of TSN-capable gigabit switches.
@@ -212,7 +211,6 @@ config ARCH_SPARX5
 	bool "Microchip Sparx5 SoC family"
 	select PINCTRL
 	select DW_APB_TIMER_OF
-	select ARCH_MICROCHIP
 	help
 	  This enables support for the Microchip Sparx5 ARMv8-based
 	  SoC family of TSN-capable gigabit switches.
@@ -223,7 +221,7 @@ config ARCH_SPARX5
 	  security through TCAM-based frame processing using versatile
 	  content aware processor (VCAP).
 
-endmenu
+endif
 
 config ARCH_MMP
 	bool "Marvell MMP SoC Family"
arch/arm64/configs/defconfig +1 -0
index d1e894b988f99..580b7ab2ea05f 100644
@@ -57,6 +57,7 @@ CONFIG_ARCH_HISI=y
 CONFIG_ARCH_KEEMBAY=y
 CONFIG_ARCH_MEDIATEK=y
 CONFIG_ARCH_MESON=y
+CONFIG_ARCH_MICROCHIP=y
 CONFIG_ARCH_MVEBU=y
 CONFIG_ARCH_NXP=y
 CONFIG_ARCH_LAYERSCAPE=y
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Bartosz Golaszewski

Microchip is the only platform that doesn't have a top-level switch for disabling all SoC families. Align it with other platforms and update the arm64 defconfig to keep the default config the same.

---
 arch/arm64/Kconfig.platforms | 10 ++++------
 arch/arm64/configs/defconfig |  1 +
 2 files changed, 5 insertions(+), 6 deletions(-)
arch/arm64/Kconfig.platforms +0 -0
index 54eb1d7fd419b..72c812e76b0b1 100644

arch/arm64/Kconfig.platforms config ARCH_MESON · line 194

Quoted 10 lines
arch/arm64/Kconfig.platforms +3 -3
@@ -188,16 +188,15 @@ config ARCH_MESON
 	  This enables support for the arm64 based Amlogic SoCs
 	  such as the s905, S905X/D, S912, A113X/D or S905X/D2
 
-menu "Microchip SoC support"
+menuconfig ARCH_MICROCHIP
+	bool "Microchip SoC support"
 
-config ARCH_MICROCHIP
-	bool
+if ARCH_MICROCHIP

This will surprise all out-of-tree non-defconfig users, because their boards will stop working (drivers depend on ARCH_LAN969X|ARCH_SPARX5 which will be now disabled), but I like the consistency.

I guess this will go via Microchip arm64 soc tree.

Best regards,
Krzysztof

#2 lore raw
Quoted 24 lines · Krzysztof Kozlowski
Quoted 22 lines · Bartosz Golaszewski

Microchip is the only platform that doesn't have a top-level switch for disabling all SoC families. Align it with other platforms and update the arm64 defconfig to keep the default config the same.

---
 arch/arm64/Kconfig.platforms | 10 ++++------
 arch/arm64/configs/defconfig |  1 +
 2 files changed, 5 insertions(+), 6 deletions(-)
arch/arm64/Kconfig.platforms +2 -1
index 54eb1d7fd419b..72c812e76b0b1 100644
@@ -188,16 +188,15 @@ config ARCH_MESON
        This enables support for the arm64 based Amlogic SoCs
        such as the s905, S905X/D, S912, A113X/D or S905X/D2
 
-menu "Microchip SoC support"
+menuconfig ARCH_MICROCHIP
+     bool "Microchip SoC support"
 
Quoted 8 lines

arch/arm64/Kconfig.platforms config ARCH_MESON · line 194

Quoted 3 lines
arch/arm64/Kconfig.platforms +1 -2
-config ARCH_MICROCHIP
-     bool
+if ARCH_MICROCHIP

This will surprise all out-of-tree non-defconfig users, because their boards will stop working (drivers depend on ARCH_LAN969X|ARCH_SPARX5 which will be now disabled), but I like the consistency.

I'm not following, ARCH_SPARX5 remains enabled in defconfig and ARCH_LAN969X was already disabled by default.

Quoted 2 lines

I guess this will go via Microchip arm64 soc tree.

I think this should be picked up directly into the ARM SoC tree to avoid conflicts later into the cycle.

Bartosz

Quoted 4 lines

Best regards,
Krzysztof

#3 lore raw
Quoted 9 lines · Bartosz Golaszewski
Quoted 5 lines · Krzysztof Kozlowski

This will surprise all out-of-tree non-defconfig users, because their boards will stop working (drivers depend on ARCH_LAN969X|ARCH_SPARX5 which will be now disabled), but I like the consistency.

I'm not following, ARCH_SPARX5 remains enabled in defconfig and ARCH_LAN969X was already disabled by default.

Your patch to the in-kernel defconfig is fine, but most users don't use that but instead have their own defconfig files which they now need to update.

Arnd

#4 lore raw
Quoted 9 lines · Arnd Bergmann
Quoted 7 lines · Bartosz Golaszewski
Quoted 5 lines · Krzysztof Kozlowski

This will surprise all out-of-tree non-defconfig users, because their boards will stop working (drivers depend on ARCH_LAN969X|ARCH_SPARX5 which will be now disabled), but I like the consistency.

Quoted 7 lines
Quoted 2 lines

I'm not following, ARCH_SPARX5 remains enabled in defconfig and ARCH_LAN969X was already disabled by default.

Your patch to the in-kernel defconfig is fine, but most users don't use that but instead have their own defconfig files which they now need to update.

Ah ok, I see. Do you want me to do:

config ARCH_SPARX5
def_bool y if ARCH_MICROCHIP

?

That should fix it, right?

Bart

#5 lore raw
Quoted 18 lines · Bartosz Golaszewski
Quoted 9 lines · Arnd Bergmann
Quoted 7 lines · Bartosz Golaszewski
Quoted 5 lines · Krzysztof Kozlowski

This will surprise all out-of-tree non-defconfig users, because their boards will stop working (drivers depend on ARCH_LAN969X|ARCH_SPARX5 which will be now disabled), but I like the consistency.

Quoted 7 lines
Quoted 2 lines

I'm not following, ARCH_SPARX5 remains enabled in defconfig and ARCH_LAN969X was already disabled by default.

Your patch to the in-kernel defconfig is fine, but most users don't use that but instead have their own defconfig files which they now need to update.

Quoted 8 lines

Ah ok, I see. Do you want me to do:

config ARCH_SPARX5
def_bool y if ARCH_MICROCHIP

?

That should fix it, right?

No, because they still won't have ARCH_MICROCHIP. The out-of-tree person's config is for example only:

CONFIG_ARCH_SPARX5=y

now, this will be silently discarded with all the drivers depending on it, because the ARCH_MICROCHIP is missing.

I don't think this is fixable, that's why I wrote that I accept the negative impact because I like the cleanup more.

Best regards,
Krzysztof

#6 lore raw
Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Bartosz Golaszewski

On Fri, Feb 27, 2026 at 9:49 AM Arnd Bergmann <[email protected]> wrote:

I don't think this is fixable, that's why I wrote that I accept the negative impact because I like the cleanup more.

Agreed. I remember when we split up the ethernet drivers into per-vendor subdirectories and had to add 'default y' to each one in 88f07484ccdf ("drivers/net/ethernet/*: Enabled vendor Kconfig options"). Changing the default to 'n' would be a regression now as much as it was then, so it's not something we can expect to do more easily in the future.

If the Microchip maintainers think the change will cause too much extra work, we can leave the current version forever, otherwise lets apply it for 7.1.

Arnd

#7 lore raw
Quoted 13 lines · Arnd Bergmann
Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Bartosz Golaszewski

On Fri, Feb 27, 2026 at 9:49 AM Arnd Bergmann <[email protected]> wrote:

I don't think this is fixable, that's why I wrote that I accept the negative impact because I like the cleanup more.

Agreed. I remember when we split up the ethernet drivers into per-vendor subdirectories and had to add 'default y' to each one in 88f07484ccdf ("drivers/net/ethernet/*: Enabled vendor Kconfig options"). Changing the default to 'n' would be a regression now as much as it was then, so it's not something we can expect to do more easily in the future.

Quoted 3 lines

If the Microchip maintainers think the change will cause too much extra work, we can leave the current version forever, otherwise lets apply it for 7.1.

Here's the previous discussion when this was added not too long ago:
https://lore.kernel.org/all/20250811122053.4bfyoefln7wpz2a4@DEN-DL-M70577/

Daniel is probably the one that "needs" to answer this, I think the lan969x is added recently enough for this to not be particularly disruptive.

#8 lore raw
Quoted 18 lines · Conor Dooley
Quoted 13 lines · Arnd Bergmann
Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Bartosz Golaszewski

On Fri, Feb 27, 2026 at 9:49 AM Arnd Bergmann <[email protected]> wrote:

I don't think this is fixable, that's why I wrote that I accept the negative impact because I like the cleanup more.

Agreed. I remember when we split up the ethernet drivers into per-vendor subdirectories and had to add 'default y' to each one in 88f07484ccdf ("drivers/net/ethernet/*: Enabled vendor Kconfig options"). Changing the default to 'n' would be a regression now as much as it was then, so it's not something we can expect to do more easily in the future.

Quoted 3 lines

If the Microchip maintainers think the change will cause too much extra work, we can leave the current version forever, otherwise lets apply it for 7.1.

Quoted 6 lines

Here's the previous discussion when this was added not too long ago:
https://lore.kernel.org/all/20250811122053.4bfyoefln7wpz2a4@DEN-DL-M70577/

Daniel is probably the one that "needs" to answer this, I think the lan969x is added recently enough for this to not be particularly disruptive.

I don't get arguments there. The policy is one ARCH per vendor, so why exactly upstream would like to "having more granular control with separate"? That's downstream or vendor wishlist, not upstream.

Best regards,
Krzysztof

#9 lore raw
Quoted 26 lines · Conor Dooley
Quoted 18 lines · Arnd Bergmann
Quoted 13 lines · Krzysztof Kozlowski
Quoted 5 lines · Bartosz Golaszewski
Quoted 1 line · Arnd Bergmann

I don't think this is fixable, that's why I wrote that I accept the negative impact because I like the cleanup more.

Agreed. I remember when we split up the ethernet drivers into per-vendor subdirectories and had to add 'default y' to each one in 88f07484ccdf ("drivers/net/ethernet/*: Enabled vendor Kconfig options"). Changing the default to 'n' would be a regression now as much as it was then, so it's not something we can expect to do more easily in the future.

Quoted 3 lines

If the Microchip maintainers think the change will cause too much extra work, we can leave the current version forever, otherwise lets apply it for 7.1.

Quoted 6 lines

Here's the previous discussion when this was added not too long ago:
https://lore.kernel.org/all/20250811122053.4bfyoefln7wpz2a4@DEN-DL-M70577/

Daniel is probably the one that "needs" to answer this, I think the lan969x is added recently enough for this to not be particularly disruptive.

Quoted 7 lines

I don't get arguments there. The policy is one ARCH per vendor, so why exactly upstream would like to "having more granular control with separate"? That's downstream or vendor wishlist, not upstream.

Best regards,
Krzysztof

The out-of-tree defconfig impact is minimal for us. As Conor mentioned, lan969x was added fairly recently, so the number of affected users should be small.

/Daniel

#10 lore raw
Quoted 32 lines · Daniel Machon
Quoted 32 lines · Conor Dooley
Quoted 18 lines · Arnd Bergmann
Quoted 13 lines · Krzysztof Kozlowski
Quoted 5 lines · Bartosz Golaszewski
Quoted 1 line · Arnd Bergmann

I don't think this is fixable, that's why I wrote that I accept the negative impact because I like the cleanup more.

Agreed. I remember when we split up the ethernet drivers into per-vendor subdirectories and had to add 'default y' to each one in 88f07484ccdf ("drivers/net/ethernet/*: Enabled vendor Kconfig options"). Changing the default to 'n' would be a regression now as much as it was then, so it's not something we can expect to do more easily in the future.

Quoted 3 lines

If the Microchip maintainers think the change will cause too much extra work, we can leave the current version forever, otherwise lets apply it for 7.1.

Quoted 6 lines

Here's the previous discussion when this was added not too long ago:
https://lore.kernel.org/all/20250811122053.4bfyoefln7wpz2a4@DEN-DL-M70577/

Daniel is probably the one that "needs" to answer this, I think the lan969x is added recently enough for this to not be particularly disruptive.

I don't get arguments there. The policy is one ARCH per vendor, so why exactly upstream would like to "having more granular control with separate"? That's downstream or vendor wishlist, not upstream.

Quoted 7 lines
Quoted 2 lines

Best regards,
Krzysztof

The out-of-tree defconfig impact is minimal for us. As Conor mentioned, lan969x was added fairly recently, so the number of affected users should be small.

/Daniel

So can this be picked up directly into ARM-SoC please?

Bart

#11 lore raw
Quoted 16 lines · Bartosz Golaszewski
Quoted 16 lines
Quoted 15 lines
Quoted 7 lines

Here's the previous discussion when this was added not too long ago:
https://lore.kernel.org/all/20250811122053.4bfyoefln7wpz2a4@DEN-DL-M70577/

Daniel is probably the one that "needs" to answer this, I think the lan969x is added recently enough for this to not be particularly disruptive.

I don't get arguments there. The policy is one ARCH per vendor, so why exactly upstream would like to "having more granular control with separate"? That's downstream or vendor wishlist, not upstream.

Best regards,
Krzysztof

Quoted 6 lines
Quoted 4 lines

The out-of-tree defconfig impact is minimal for us. As Conor mentioned, lan969x was added fairly recently, so the number of affected users should be small.

/Daniel

So can this be picked up directly into ARM-SoC please?

This should go rather via Microchip ARM64 tree.

Best regards,
Krzysztof

#12 lore raw
Quoted 18 lines · Krzysztof Kozlowski
Quoted 16 lines · Bartosz Golaszewski
Quoted 16 lines
Quoted 15 lines
Quoted 7 lines

Here's the previous discussion when this was added not too long ago:
https://lore.kernel.org/all/20250811122053.4bfyoefln7wpz2a4@DEN-DL-M70577/

Daniel is probably the one that "needs" to answer this, I think the lan969x is added recently enough for this to not be particularly disruptive.

I don't get arguments there. The policy is one ARCH per vendor, so why exactly upstream would like to "having more granular control with separate"? That's downstream or vendor wishlist, not upstream.

Best regards,
Krzysztof

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

The out-of-tree defconfig impact is minimal for us. As Conor mentioned, lan969x was added fairly recently, so the number of affected users should be small.

/Daniel

So can this be picked up directly into ARM-SoC please?

This should go rather via Microchip ARM64 tree.

Hey Microchip maintainers, can you please pick it up for v7.1?

Bartosz

#13 lore raw
Quoted 22 lines · Bartosz Golaszewski
Quoted 21 lines · Krzysztof Kozlowski
Quoted 19 lines · Bartosz Golaszewski
Quoted 19 lines
Quoted 8 lines
Quoted 7 lines

Here's the previous discussion when this was added not too long ago:
https://lore.kernel.org/all/20250811122053.4bfyoefln7wpz2a4@DEN-DL-M70577/

Daniel is probably the one that "needs" to answer this, I think the lan969x is added recently enough for this to not be particularly disruptive.

Quoted 7 lines

I don't get arguments there. The policy is one ARCH per vendor, so why exactly upstream would like to "having more granular control with separate"? That's downstream or vendor wishlist, not upstream.

Best regards,
Krzysztof

The out-of-tree defconfig impact is minimal for us. As Conor mentioned, lan969x was added fairly recently, so the number of affected users should be small.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

/Daniel

So can this be picked up directly into ARM-SoC please?

This should go rather via Microchip ARM64 tree.

Hey Microchip maintainers, can you please pick it up for v7.1?

Applied to microchip-soc, thanks!

Will push it later today (infrastructure issue ATM).

Thank you,
Claudiu

#14 lore raw
In reply to Bartosz Golaszewski
Quoted 34 lines · Bartosz Golaszewski
Quoted 24 lines · Krzysztof Kozlowski
Quoted 22 lines · Bartosz Golaszewski

Microchip is the only platform that doesn't have a top-level switch for disabling all SoC families. Align it with other platforms and update the arm64 defconfig to keep the default config the same.

---
 arch/arm64/Kconfig.platforms | 10 ++++------
 arch/arm64/configs/defconfig |  1 +
 2 files changed, 5 insertions(+), 6 deletions(-)
arch/arm64/Kconfig.platforms +2 -1
index 54eb1d7fd419b..72c812e76b0b1 100644
@@ -188,16 +188,15 @@ config ARCH_MESON
        This enables support for the arm64 based Amlogic SoCs
        such as the s905, S905X/D, S912, A113X/D or S905X/D2
 
-menu "Microchip SoC support"
+menuconfig ARCH_MICROCHIP
+     bool "Microchip SoC support"
 
Quoted 8 lines

arch/arm64/Kconfig.platforms config ARCH_MESON · line 194

Quoted 3 lines
arch/arm64/Kconfig.platforms +1 -2
-config ARCH_MICROCHIP
-     bool
+if ARCH_MICROCHIP

This will surprise all out-of-tree non-defconfig users, because their boards will stop working (drivers depend on ARCH_LAN969X|ARCH_SPARX5 which will be now disabled), but I like the consistency.

Quoted 2 lines

I'm not following, ARCH_SPARX5 remains enabled in defconfig and ARCH_LAN969X was already disabled by default.

That's why I said non-defconfig.

Best regards,
Krzysztof