linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre@microchip.com>
To: Robert Marko <robert.marko@sartura.hr>,
	Arnd Bergmann <arnd@kernel.org>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Russell King <linux@armlinux.org.uk>,
	Claudiu Beznea <claudiu.beznea@tuxon.dev>,
	Catalin Marinas <catalin.marinas@arm.com>,
	"Will Deacon" <will@kernel.org>,
	Olivia Mackall <olivia@selenic.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	"David S . Miller" <davem@davemloft.net>,
	Vinod Koul <vkoul@kernel.org>, Andi Shyti <andi.shyti@kernel.org>,
	Lee Jones <lee@kernel.org>, Mark Brown <broonie@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <linux-crypto@vger.kernel.org>,
	<dmaengine@vger.kernel.org>, <linux-i2c@vger.kernel.org>,
	<linux-spi@vger.kernel.org>, <linux-serial@vger.kernel.org>,
	Oleksij Rempel <o.rempel@pengutronix.de>,
	Daniel Machon <daniel.machon@microchip.com>,
	<luka.perkov@sartura.hr>,
	"Conor Dooley" <Conor.Dooley@microchip.com>,
	Lars Povlsen - M31675 <Lars.Povlsen@microchip.com>
Subject: Re: [PATCH v8 01/10] arm64: Add config for Microchip SoC platforms
Date: Thu, 3 Jul 2025 15:55:47 +0200	[thread overview]
Message-ID: <421d61db-27eb-4ad2-bd98-eb187fd14b1e@microchip.com> (raw)
In-Reply-To: <CA+HBbNHxiU5+xVJTyPQFuCJLyEs5_MpybSBEgxi25bzaGfiVHA@mail.gmail.com>

Robert, Arnd,

On 03/07/2025 at 14:25, Robert Marko wrote:
> On Wed, Jul 2, 2025 at 9:57 PM Arnd Bergmann <arnd@kernel.org> wrote:
>>
>> On Wed, Jul 2, 2025, at 20:35, Robert Marko wrote:
>>> Currently, Microchip SparX-5 SoC is supported and it has its own symbol.
>>>
>>> However, this means that new Microchip platforms that share drivers need
>>> to constantly keep updating depends on various drivers.
>>>
>>> So, to try and reduce this lets add ARCH_MICROCHIP symbol that drivers
>>> could instead depend on.
>>
>> Thanks for updating the series to my suggestion!
>>
>>> @@ -174,6 +160,27 @@ config ARCH_MESON
>>>          This enables support for the arm64 based Amlogic SoCs
>>>          such as the s905, S905X/D, S912, A113X/D or S905X/D2
>>>
>>> +menuconfig ARCH_MICROCHIP
>>> +     bool "Microchip SoC support"
>>> +
>>> +if ARCH_MICROCHIP
>>> +
>>> +config ARCH_SPARX5
>>> +     bool "Microchip Sparx5 SoC family"
>>
>> This part is the one bit I'm not sure about: The user-visible
>> arm64 CONFIG_ARCH_* symbols are usually a little higher-level,
>> so I don't think we want both ARCH_MICROCHIP /and/ ARCH_SPARX5
>> here, or more generally speaking any of the nested ARCH_*
>> symbols.

Well, having a look at arch/arm64/Kconfig.platforms, I like how NXP is 
organized.

SPARX5, LAN969x or other MPU platforms, even if they share some common 
IPs, are fairly different in terms of internal architecture or feature set.
So, to me, different ARCH_SPARX5, ARCH_LAN969X (as Robert proposed) or 
future ones make a lot sense.
It will help in selecting not only different device drivers but 
different PM architectures, cores or TrustZone implementation...

>> This version of your patch is going to be slightly annoying
>> to existing sparx5 users because updating an old .config
>> breaks when ARCH_MICROCHIP is not enabled.

Oh, yeah, indeed. Even if I find Robert's proposal ideal.

Alexandre, Lars, can you evaluate this level of annoyance?

>> The two options that I would prefer here are
>>
>> a) make ARCH_SPARX5 a hidden symbol in order to keep the
>>     series bisectable, remove it entirely once all references
>>     are moved over to ARCH_MICROCHIP
>>
>> b) Make ARCH_MICROCHIP a hidden symbol that is selected by
>>     ARCH_SPARX5 but keep the menu unchanged.
> 
> Hi Arnd,
> Ok, I see the issue, and I would prefer to go with option b and do
> what I did for
> AT91 with the hidden ARCH_MICROCHIP symbol to avoid breaking current configs.

Yep, but at the cost of multiple entries for Microchip arm64 SoCs at the 
"Platform selection" menu level. Nuvoton or Cavium have this already, so 
it's probably fine.

>> Let's see what the sparx5 and at91 maintainers think about
>> these options.
> 
> Sounds good, let's give them some time before I respin this series.

Thanks to both of you. Best regards,
   Nicolas

  reply	other threads:[~2025-07-03 13:57 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-02 18:35 [PATCH v8 00/10] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
2025-07-02 18:35 ` [PATCH v8 01/10] arm64: Add config for Microchip SoC platforms Robert Marko
2025-07-02 19:57   ` Arnd Bergmann
2025-07-03 12:25     ` Robert Marko
2025-07-03 13:55       ` Nicolas Ferre [this message]
2025-07-04 17:36         ` Robert Marko
2025-08-11 12:20           ` Daniel Machon
2025-07-03 14:21     ` Conor Dooley
2025-07-02 18:36 ` [PATCH v8 02/10] ARM: at91: select ARCH_MICROCHIP Robert Marko
2025-07-02 18:36 ` [PATCH v8 03/10] arm64: lan969x: Add support for Microchip LAN969x SoC Robert Marko
2025-07-02 18:36 ` [PATCH v8 04/10] mfd: at91-usart: Make it selectable for ARCH_MICROCHIP Robert Marko
2025-07-23  8:39   ` (subset) " Lee Jones
2025-07-24 10:04     ` Lee Jones
2025-07-27 12:55       ` Robert Marko
2025-07-02 18:36 ` [PATCH v8 05/10] tty: serial: atmel: make " Robert Marko
2025-07-02 18:36 ` [PATCH v8 06/10] spi: " Robert Marko
2025-07-02 18:36 ` [PATCH v8 07/10] i2c: at91: " Robert Marko
2025-07-02 18:36 ` [PATCH v8 08/10] dma: xdmac: " Robert Marko
2025-07-02 18:36 ` [PATCH v8 09/10] char: hw_random: atmel: " Robert Marko
2025-07-02 18:36 ` [PATCH v8 10/10] crypto: atmel-aes: " Robert Marko
2025-07-23 12:29 ` (subset) [PATCH v8 00/10] arm64: lan969x: Add support for Microchip LAN969x SoC Vinod Koul
2025-07-31  8:05   ` Claudiu Beznea
2025-09-03 13:16     ` Alexander Dahl
2025-09-03 14:01       ` Nicolas Ferre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=421d61db-27eb-4ad2-bd98-eb187fd14b1e@microchip.com \
    --to=nicolas.ferre@microchip.com \
    --cc=Conor.Dooley@microchip.com \
    --cc=Lars.Povlsen@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=andi.shyti@kernel.org \
    --cc=arnd@kernel.org \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=daniel.machon@microchip.com \
    --cc=davem@davemloft.net \
    --cc=dmaengine@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=jirislaby@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=luka.perkov@sartura.hr \
    --cc=o.rempel@pengutronix.de \
    --cc=olivia@selenic.com \
    --cc=robert.marko@sartura.hr \
    --cc=vkoul@kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).