From: David Brownell <david-b@pacbell.net>
To: Adrian Hunter <ext-adrian.hunter@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [patch 2.6.29-rc5-omap-git] mach-omap2/mmc-twl4030: fix for vmmc = 0
Date: Wed, 25 Feb 2009 02:04:53 -0800 [thread overview]
Message-ID: <200902250204.53559.david-b@pacbell.net> (raw)
In-Reply-To: <49A51323.1030701@nokia.com>
> >> Looks fine to me, but I wonder if you know why the regulator is
> >> turned on (DEV_GRP) and then the voltage is selected (DEDICATED).
> >
> > History, I'd guess. I seem to remember some sequencing
> > constraint, but couldn't find it when last I sought it
> > out in the reference manual.
>
> What about section 5.5.1 item 6?
That's an example. I'm thinking the constraint had
to do with one or more of the USB regulators. It just
doesn't make sense to have a *general* rule that the
resource needs to be enabled before tweaking. Maybe
it was an erratum or something.
> >> Wouldn't it make more sense the other way around?
> >
> > I had the same thought. Eventually I'd like this code
> > to mostly wither away ... using the regulator framework
> > for the hsmmc driver will eliminate most of the remaining
> > bits of twl4030-specific code. So I'd just leave it be
> > for the moment.
> >
> >
> >> Doesn't the new regulator framework do it that way?
> >
> > No; setting voltage and enabling are distinct operations.
>
> Perhaps, but there are features like regulator constraints,
> or the Virtual regulator that do set the voltage and then
> enable.
Right, and I have most certainly configured regulators
with regulator_init_data.constraints.apply_uV so that
the VSEL gets set to a sane value as Linux sets up,
since u-boot wasn't touching it.
- Dave
next prev parent reply other threads:[~2009-02-25 10:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-23 18:14 [patch 2.6.29-rc5-omap-git] mach-omap2/mmc-twl4030: fix for vmmc = 0 David Brownell
2009-02-24 11:48 ` Adrian Hunter
2009-02-24 20:13 ` David Brownell
2009-02-25 9:45 ` Adrian Hunter
2009-02-25 10:04 ` David Brownell [this message]
2009-02-27 21:52 ` [APPLIED] " 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=200902250204.53559.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=ext-adrian.hunter@nokia.com \
--cc=linux-omap@vger.kernel.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