From: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
To: Tomer Maimon <tmaimon77@gmail.com>
Cc: "Joel Stanley" <joel@jms.id.au>,
"Jonathan Neuschäfer" <j.neuschaefer@gmx.net>,
"Hitomi Hasegawa" <hasegawa-hitomi@fujitsu.com>,
"Paul Menzel" <pmenzel@molgen.mpg.de>,
"Hector Martin" <marcan@marcan.st>,
"Arnd Bergmann" <arnd@arndb.de>,
"Sven Peter" <sven@svenpeter.dev>,
openbmc@lists.ozlabs.org,
"Brian Norris" <briannorris@chromium.org>,
linux-kernel@vger.kernel.org,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
"Lubomir Rintel" <lkundrak@v3.sk>,
"Conor Dooley" <conor.dooley@microchip.com>,
"Robert Jarzmik" <robert.jarzmik@free.fr>
Subject: Re: [PATCH v5 RESEND] soc: nuvoton: Add SoC info driver for WPCM450
Date: Thu, 3 Nov 2022 16:45:04 +0100 [thread overview]
Message-ID: <Y2PiAKBTtnAjlToY@probook> (raw)
In-Reply-To: <CAP6Zq1iHOm1sQTHshmVobzy9yX_REt6OL5qyFz+R77vYw=7yBg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2155 bytes --]
On Thu, Nov 03, 2022 at 09:11:08AM +0200, Tomer Maimon wrote:
> Hi Jonathan,
>
> Thanks for your patch.
>
> On Thu, 3 Nov 2022 at 01:09, Joel Stanley <joel@jms.id.au> wrote:
> >
> > On Mon, 31 Oct 2022 at 22:40, Jonathan Neuschäfer <j.neuschaefer@gmx.net> wrote:
> > >
> > > Add a SoC information driver for Nuvoton WPCM450 SoCs. It provides
> > > information such as the SoC revision.
[...]
> > > +++ b/drivers/soc/nuvoton/Kconfig
> > > @@ -0,0 +1,11 @@
> > > +# SPDX-License-Identifier: GPL-2.0
> > > +menuconfig WPCM450_SOC
> > > + tristate "Nuvoton WPCM450 SoC driver"
> > > + default y if ARCH_WPCM450
> > > + select SOC_BUS
> >
> > Sorry for not noticing this earlier. This is a bit confusing. If we
> > have a menu option, the soc driver should appear under it. Or we could
> > do without the menu all together, as there's only one driver so far.
Good point.
> >
> > We also should select REGMAP, as you're using it,
I'll add it.
> > and hide the option behind ARCH_WPCM450 || COMPILE_TEST.
> >
> > How about this:
> >
> > if ARCH_WPCM450 || COMPILE_TEST
> These days we working on LPC BPC driver for NPCM7xx and NPCM8xx that
> will be placed in nuvoton soc folder.
> we will use:
>
> if ARCH_NPCM || COMPILE_TEST
>
> menu "NPCM SoC drivers"
That sounds reasonable, I'll do something similar.
> Maybe you should remove
> if ARCH_WPCM450 || COMPILE_TEST
>
> and add ARCH_WPCM450 dependency in the WPCM450_SOCINFO driver configuration.
The WPCM450_SOCINFO driver would build fine on other NPCM SoC, it just
wouldn't be very useful, so I think the current "default y if ARCH_WPCM450"
solution is sufficient.
>
> >
> > config WPCM450_SOCINFO
> > tristate "Nuvoton WPCM450 SoC driver"
> > default y if ARCH_WPCM450
> > select SOC_BUS
> > select REGMAP
> > help
> > Say Y here to compile the SoC information driver for Nuvoton
> > WPCM450 SoCs.
> >
> > This driver provides information such as the SoC model and
> > revision.
> >
> > endif
Thank you both,
Jonathan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2022-11-03 15:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 22:39 [PATCH v5 RESEND] soc: nuvoton: Add SoC info driver for WPCM450 Jonathan Neuschäfer
2022-11-02 23:08 ` Joel Stanley
2022-11-03 7:11 ` Tomer Maimon
2022-11-03 15:45 ` Jonathan Neuschäfer [this message]
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=Y2PiAKBTtnAjlToY@probook \
--to=j.neuschaefer@gmx.net \
--cc=arnd@arndb.de \
--cc=briannorris@chromium.org \
--cc=conor.dooley@microchip.com \
--cc=hasegawa-hitomi@fujitsu.com \
--cc=joel@jms.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=lkundrak@v3.sk \
--cc=marcan@marcan.st \
--cc=nicolas.ferre@microchip.com \
--cc=openbmc@lists.ozlabs.org \
--cc=pmenzel@molgen.mpg.de \
--cc=robert.jarzmik@free.fr \
--cc=sven@svenpeter.dev \
--cc=tmaimon77@gmail.com \
/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