From: David Brownell <david-b@pacbell.net>
To: Mark Brown <broonie@sirena.org.uk>, Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP: Don't warn user about expected behaviour in mmc-twl4030
Date: Fri, 3 Apr 2009 18:03:33 -0700 [thread overview]
Message-ID: <200904031803.33648.david-b@pacbell.net> (raw)
In-Reply-To: <20090331210019.GA12304@sirena.org.uk>
On Tuesday 31 March 2009, Mark Brown wrote:
> On Mon, Mar 30, 2009 at 01:53:43PM -0700, David Brownell wrote:
>
> > So when are you going to fix the regulator docs to report that:
>
> > ALL regulator consumers must start by enabling and
> > then disabling the regulator.
>
> The documention should not be changed to say that since only consumers
> that need the regulator to be off at startup should do this, and then
> probably only if they find that it is already enabled.
"Probably" shows you still don't have a good answer...
I see that mainline now has ca7255614e0861e36480103f4a402a115803d7b5
which is a variant of the first late-fixup patch I sent. The isssue
with that approach is that it leaves a huge window between regulator
init and its late fixup ... during which driver probe() calls suffer
the bad effects of the current self-inconsistent initialization. So
it doesn't really address the MMC cases.
On Friday 03 April 2009, Tony Lindgren wrote:
> ... what
> if we have something in regulator_init_data that would tell the
> regulator to reset the regulator on init?
That would address the MMC scenario, where the stack always wants to
start with regulator "off" if it's possible.
And in fact, that's exactly what I think folk should be doing with
the recent additions to twl4030-power supporting explicit init of
all the power resources ... as done with e.g. Beagle. The benefit
of doing it that way is that it can cover the regulators which are
not actually used on the board (like VAUX3 on Beagle, which u-boot
enables but is not wired to anything) plus non-regulator resources
like CLKREQ etc.
So there's an OMAP-specific workaround now in place, albeit not
yet headed towards mainline.
- Dave
next prev parent reply other threads:[~2009-04-04 1:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 19:15 [PATCH] OMAP: Don't warn user about expected behaviour in mmc-twl4030 Mark Brown
2009-03-30 20:53 ` David Brownell
2009-03-31 21:00 ` Mark Brown
2009-04-04 0:26 ` Tony Lindgren
2009-04-04 0:40 ` Mark Brown
2009-04-04 1:03 ` David Brownell [this message]
2009-04-06 15:56 ` Mark Brown
2009-04-04 0:24 ` [APPLIED] [PATCH] OMAP: Don't warn user about expected behaviour in Tony Lindgren
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=200904031803.33648.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=broonie@sirena.org.uk \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.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