From: p.zabel@pengutronix.de (Philipp Zabel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/4] drivers: reset: Add STM32 reset driver
Date: Thu, 28 Jul 2016 16:29:18 +0200 [thread overview]
Message-ID: <1469716158.12835.54.camel@pengutronix.de> (raw)
In-Reply-To: <4648059.qaGUNaKlSl@wuerfel>
Am Freitag, den 22.07.2016, 21:25 +0200 schrieb Arnd Bergmann:
> On Thursday, July 21, 2016 7:16:02 PM CEST Paul Gortmaker wrote:
>
> > > > ...we probably don't need module.h here or any of the other
> > > > MODULE_<blah> tags/macros either. Use the builtin for the
> > > > register and all should be good.
> > >
> > > I wonder if we should have separate symbols for each reset driver
> > > instead. Those could be allowed to be tristate, and could also
> > > be enabled for compile testing on other architectures.
> >
> > I'm not quite clear on what you mean by the above. Maybe if you have a
> > pointer to an example -- say like the work you mention below -- then
> > I'll understand what you have in mind.
>
> I mean instead of having each driver compiled implicitly when the
> ARCH_* symbol is enabled, make the drivers user-selectable
> and just default to 'y' when the platform is enabled. This would
> let us actually use modular reset drivers where appropriate
> (which might be nowhere, but at least we wouldn't forbid it
> for no reason).
I agree with this for the drivers that could be built as a module
(which is most of them).
I don't think it is useful for the builtin drivers to have user visible
Kconfig symbols.
> Another annoying thing is that all platforms today need to
> select two symbols
>
> select ARCH_HAS_RESET_CONTROLLER
> select RESET_CONTROLLER
>
> in order to actually build the driver, and the second one is
> user-selectable, meaning you can still disable all of them today,
> just not individual drivers.
RESET_CONTROLLER is default y if ARCH_HAS_RESET_CONTROLLER, so if
platforms select ARCH_HAS_RESET_CONTROLLER, that should be enough.
regards
Philipp
next prev parent reply other threads:[~2016-07-28 14:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-21 9:19 [PATCH v2 0/4] Add STM32 Reset Driver gabriel.fernandez at st.com
2016-07-21 9:19 ` [PATCH v2 1/4] dt-bindings: mfd: Add STM32F4 RCC numeric constants into DT include file gabriel.fernandez at st.com
2016-07-21 9:19 ` [PATCH v2 2/4] dt-bindings: Document the STM32 reset bindings gabriel.fernandez at st.com
2016-07-21 22:06 ` Rob Herring
2016-07-21 9:19 ` [PATCH v2 3/4] drivers: reset: Add STM32 reset driver gabriel.fernandez at st.com
2016-07-21 19:48 ` Paul Gortmaker
2016-07-21 19:55 ` Arnd Bergmann
2016-07-21 23:16 ` Paul Gortmaker
2016-07-22 19:25 ` Arnd Bergmann
2016-07-22 21:02 ` Paul Gortmaker
2016-07-28 14:29 ` Philipp Zabel [this message]
2016-07-22 9:24 ` Gabriel Fernandez
2016-07-21 9:19 ` [PATCH v2 4/4] ARM: dts: stm32f429: add missing #reset-cells of rcc gabriel.fernandez at st.com
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=1469716158.12835.54.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.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).