mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "Robert Marko" <robert.marko@sartura.hr>
Cc: "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>,
	"Mark Brown" <broonie@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,
	"Pengutronix Kernel Team" <kernel@pengutronix.de>,
	ore@pengutronix.de, luka.perkov@sartura.hr,
	"Daniel Machon" <daniel.machon@microchip.com>
Subject: Re: [PATCH v7 0/6] arm64: lan969x: Add support for Microchip LAN969x SoC
Date: Mon, 30 Jun 2025 15:53:54 +0200	[thread overview]
Message-ID: <3e522dcc-3b68-4137-bd3a-dcc2c889dbd3@app.fastmail.com> (raw)
In-Reply-To: <CA+HBbNFd5hCKqUZY25Sws-o-0QALLue-JROyze_9biyuZZv4mg@mail.gmail.com>

On Mon, Jun 30, 2025, at 15:21, Robert Marko wrote:
> On Mon, Jun 16, 2025 at 8:34 PM Arnd Bergmann <arnd@arndb.de> wrote:
>> On Fri, Jun 13, 2025, at 13:39, Robert Marko wrote:
>>
>> If the drivers on ARCH_LAN969X are largely shared with those on
>> ARCH_AT91, should they perhaps depend on a common symbol?
>>
>> That could be either the existing ARCH_AT91 as we do with LAN966,
>> or perhaps ARCH_MICROCHIP, which is already used for riscv/polarfire.
>
> Hi Arnd, I thought about this, but I am not sure whether its worth it
> since we need LAN969x arch anyway for other drivers that currently
> depend on LAN966x or SparX-5 but will be extended for LAN969x (I have
> this already queued locally but need this to land first).

I think in that case we would want one symbol for all of the above.
We have a couple of cases where there multiple SoC product families
get handled by a shared config symbol to make life easier for the
kernel:

- ARCH_IMX contains multiple chip families that are now owned
  by NXP but that have a complex history with acquisitions and
  product families that mix-and-match IP blocks, similar to
  Microchip

- ARCH_EXYNOS contains chips from Samsung, Google, Tesla and Axis
  that all share a lot of components because they are all based on
  Samsung designs

- ARCH_BCM contains several chip families that all started out
  in Broadcom but actually share very few common components.

On the other hand, we have TI with its davinci, omap, omap2
keystone2 and k3 platforms, or Marvell with orion, mvebu,
pxa, mmp, octeon, octeontx, thunderx and thunderx2 platforms
that overlap to varying degrees but use separate Kconfig symbols.

Since you already have an ARCH_MICROCHIP used by one of the
microchip platforms, the simplest approach seems to me to
include at91, lan969x, lan966x and sparx-5 under that as well.
You could just select that symbol from each of the four
and then change any driver that is used by more than one of
these families to use 'depends on ARCH_MICROCHIP' instead of
listing them individually.

I assume the mips based PIC32 and VCOREIII (ocelot/jaguar)
are distant enough that they wouldn't share any drivers with
the other families any more, but they could be put into that
as well if that helps.

     Arnd

  reply	other threads:[~2025-06-30 13:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-13 11:39 Robert Marko
2025-06-13 11:39 ` [PATCH v7 1/6] " Robert Marko
2025-06-13 12:10   ` Oleksij Rempel
2025-06-16 10:21   ` Daniel Machon
2025-06-30 13:18     ` Robert Marko
2025-06-13 11:39 ` [PATCH v7 2/6] spi: atmel: make it selectable for ARCH_LAN969X Robert Marko
2025-06-13 11:46   ` Mark Brown
2025-06-13 11:39 ` [PATCH v7 3/6] i2c: at91: " Robert Marko
2025-06-13 12:08   ` Oleksij Rempel
2025-06-13 11:39 ` [PATCH v7 4/6] dma: xdmac: " Robert Marko
2025-06-13 12:10   ` Oleksij Rempel
2025-06-13 11:39 ` [PATCH v7 5/6] char: hw_random: atmel: " Robert Marko
2025-06-13 12:07   ` Oleksij Rempel
2025-06-13 11:39 ` [PATCH v7 6/6] crypto: atmel-aes: " Robert Marko
2025-06-13 12:09   ` Oleksij Rempel
2025-06-23  5:49   ` Herbert Xu
2025-06-16 18:34 ` [PATCH v7 0/6] arm64: lan969x: Add support for Microchip LAN969x SoC Arnd Bergmann
2025-06-30 13:21   ` Robert Marko
2025-06-30 13:53     ` Arnd Bergmann [this message]
2025-07-02 11:07       ` Robert Marko

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=3e522dcc-3b68-4137-bd3a-dcc2c889dbd3@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=andi.shyti@kernel.org \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=daniel.machon@microchip.com \
    --cc=davem@davemloft.net \
    --cc=dmaengine@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=kernel@pengutronix.de \
    --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-spi@vger.kernel.org \
    --cc=luka.perkov@sartura.hr \
    --cc=olivia@selenic.com \
    --cc=ore@pengutronix.de \
    --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

all inboxes | Powered by JetHome®