From: Pavel Machek <pavel@denx.de>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: Marek Vasut <marex@denx.de>,
Fabio Estevam <fabio.estevam@freescale.com>,
Mike Turquette <mturquette@linaro.org>,
Arnd Bergmann <arnd@arndb.de>, Len Brown <len.brown@intel.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Grant Likely <grant.likely@secretlab.ca>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Philipp Zabel <p.zabel@pengutronix.de>,
Olof Johansson <olof@lixom.net>, Shawn Guo <shawn.guo@linaro.org>,
devicetree-discuss@lists.ozlabs.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v8] reset: Add driver for gpio-controlled reset pins
Date: Wed, 17 Jul 2013 23:38:36 +0200 [thread overview]
Message-ID: <20130717213836.GA13324@amd.pavel.ucw.cz> (raw)
In-Reply-To: <51E6CCE4.20705@wwwdotorg.org>
On Wed 2013-07-17 10:57:08, Stephen Warren wrote:
> On 07/16/2013 09:02 PM, Shawn Guo wrote:
> > On Tue, Jul 16, 2013 at 09:45:43AM -0600, Stephen Warren wrote:
> >> Registering the driver earlier won't cause any bugs. However, it's not
> >> the correct approach.
> >>
> >> Deferred probe /is/ the approach for assuring correct dependencies
> >> between drivers. It works and should be used. There are not enough
> >> initcall levels to play games using initcalls and solve all the issues,
> >> and the ordering requirements vary board-to-board. Deferred probe at
> >> runtime handles this without having to manually place all the drivers
> >> into specific initcall levels, and dynamically adjusts to board
> >> differences, since it all happens automatically at run-time.
> >
> > I do not quite follow the argument here. I agree with you that
> > deferred probe is the approach to solve dependencies. But it does not
> > necessarily mean that initcall can not be used to help it save some
> > nasty or nested deferring. Deferred probe and initcalls are not two
> > mutually exclusive mechanisms but two which can help each other.
>
> My understanding is that deferred probe was implemented specifically to
> avoid having to, or allowing, the use of initcall levels to determine
> probe order.
>
> However, if someone closely associated with the implementation of
> deferred probe (e.g. Grant, or a device core maintainer) is willing to
> step up and say I'm wrong, I'll drop my objection.
AFAIR, defered probing is known to be a "hack" by its authors. We
should still try to get initcall levels right...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2013-07-17 21:38 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 9:09 [PATCH v8] reset: Add driver for gpio-controlled reset pins Philipp Zabel
2013-05-30 10:37 ` Pavel Machek
[not found] ` <1369904940-716-1-git-send-email-p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-07-16 1:50 ` Shawn Guo
[not found] ` <20130716015038.GD28375-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2013-07-16 3:35 ` Stephen Warren
[not found] ` <51E4BF98.8030604-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-07-16 4:10 ` Shawn Guo
2013-07-16 9:49 ` Philipp Zabel
[not found] ` <1373968166.4327.11.camel-/rZezPiN1rtR6QfukMTsflXZhhPuCNm+@public.gmane.org>
2013-07-16 12:56 ` Shawn Guo
[not found] ` <20130716041056.GA30067-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2013-07-16 15:45 ` Stephen Warren
[not found] ` <51E56AA7.7020103-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-07-17 3:02 ` Shawn Guo
[not found] ` <20130717030246.GA4541-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2013-07-17 16:57 ` Stephen Warren
2013-07-17 21:38 ` Pavel Machek [this message]
[not found] ` <20130717213836.GA13324-tWAi6jLit6GreWDznjuHag@public.gmane.org>
2013-07-17 22:24 ` Stephen Warren
2013-07-18 11:25 ` Pavel Machek
[not found] ` <20130718112555.GB1021-tWAi6jLit6GreWDznjuHag@public.gmane.org>
2013-07-18 18:45 ` Olof Johansson
[not found] ` <CAOesGMgi0j_mPyeBLVHb_QW+DwtAPoFY697eQO3-yp9tnP1vmA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-19 3:23 ` Shawn Guo
[not found] ` <20130719032328.GB20889-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2013-07-19 15:45 ` Stephen Warren
2013-07-22 7:47 ` Shawn Guo
2013-07-26 10:26 ` Philipp Zabel
2013-07-18 22:55 ` Grant Likely
[not found] ` <51E6CCE4.20705-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-07-18 22:50 ` Grant Likely
2013-07-16 9:59 ` Philipp Zabel
[not found] ` <1373968758.4327.17.camel-/rZezPiN1rtR6QfukMTsflXZhhPuCNm+@public.gmane.org>
2013-07-16 15:48 ` Stephen Warren
2013-07-16 6:51 ` Shawn Guo
[not found] ` <20130716065130.GB30067-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2013-07-16 9:51 ` Philipp Zabel
[not found] ` <1373968279.4327.13.camel-/rZezPiN1rtR6QfukMTsflXZhhPuCNm+@public.gmane.org>
2013-07-16 12:15 ` Shawn Guo
2013-07-16 15:47 ` Stephen Warren
[not found] ` <51E56AF6.30506-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-07-17 3:43 ` Shawn Guo
2013-07-17 7:17 ` Philipp Zabel
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=20130717213836.GA13324@amd.pavel.ucw.cz \
--to=pavel@denx.de \
--cc=arnd@arndb.de \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=fabio.estevam@freescale.com \
--cc=grant.likely@secretlab.ca \
--cc=len.brown@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=marex@denx.de \
--cc=mturquette@linaro.org \
--cc=olof@lixom.net \
--cc=p.zabel@pengutronix.de \
--cc=rjw@sisk.pl \
--cc=s.hauer@pengutronix.de \
--cc=shawn.guo@linaro.org \
--cc=swarren@wwwdotorg.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).