public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] reset: berlin: support module build
Date: Mon, 7 Jun 2021 17:56:42 +0800	[thread overview]
Message-ID: <20210607175642.1c0e8ba4@xhacker.debian> (raw)
In-Reply-To: <562cabc4162d9f2c0fb3a307213ec1c5b4bb5535.camel@pengutronix.de>

On Mon, 07 Jun 2021 11:49:45 +0200
Philipp Zabel <p.zabel@pengutronix.de> wrote:


> 
> 
> On Mon, 2021-06-07 at 17:44 +0800, Jisheng Zhang wrote:
> > On Mon, 07 Jun 2021 11:23:57 +0200
> > Philipp Zabel <p.zabel@pengutronix.de> wrote:
> >
> >  
> > >
> > > On Thu, 2021-05-20 at 17:13 +0800, Jisheng Zhang wrote:  
> > > > Make reset-berlin driver to be tristate module, support to build as
> > > > a module, this is useful for GKI.
> > > >
> > > > Partially revert commit ed4dba99cae8 ("reset: berlin: make it
> > > > explicitly non-modular")
> > > >
> > > > Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
> > > > ---
> > > >  drivers/reset/Kconfig        |  4 ++--
> > > >  drivers/reset/reset-berlin.c | 10 ++++++++--
> > > >  2 files changed, 10 insertions(+), 4 deletions(-)
> > > >
> > > > diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig
> > > > index 3e7f55e44d84..1e7443a4dae1 100644
> > > > --- a/drivers/reset/Kconfig
> > > > +++ b/drivers/reset/Kconfig
> > > > @@ -43,8 +43,8 @@ config RESET_BCM6345
> > > >         This enables the reset controller driver for BCM6345 SoCs.
> > > >
> > > >  config RESET_BERLIN
> > > > -     bool "Berlin Reset Driver" if COMPILE_TEST
> > > > -     default ARCH_BERLIN
> > > > +     tristate "Berlin Reset Driver"
> > > > +     depends on ARCH_BERLIN || COMPILE_TEST  
> > >
> > > Is there a reason not to keep "default ARCH_BERLIN"?
> > >  
> >
> > Hi,
> >
> > After this patch, the reset driver will be built as module in most cases
> > so I removed default ARCH_BERLIN  
> 
> I see, how about "default m if ARCH_BERLIN" then?

Good idea. I think "default m" is enough, because we have a "depends on
ARCH_BERLIN || COMPILE_TEST" above

Will send out v2 soon

Thanks

> 
> I'd just like to avoid anybody getting surprised by a suddenly
> deactivated reset controller driver.
> 
> regards
> Philipp


  reply	other threads:[~2021-06-07  9:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20  9:13 [PATCH] reset: berlin: support module build Jisheng Zhang
2021-06-07  9:23 ` Philipp Zabel
2021-06-07  9:44   ` Jisheng Zhang
2021-06-07  9:49     ` Philipp Zabel
2021-06-07  9:56       ` Jisheng Zhang [this message]
2021-06-07 10:01         ` Philipp Zabel
2021-06-07 10:13           ` Jisheng Zhang

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=20210607175642.1c0e8ba4@xhacker.debian \
    --to=jisheng.zhang@synaptics.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    /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