From: David Brownell <david-b@pacbell.net>
To: Mark Brown <broonie@sirena.org.uk>
Cc: "Aggarwal, Anuj" <anuj.aggarwal@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: Problems while designing TPS65023 regulator driver
Date: Fri, 6 Mar 2009 16:07:16 -0800 [thread overview]
Message-ID: <200903061607.16825.david-b@pacbell.net> (raw)
In-Reply-To: <20090306133428.GA4327@sirena.org.uk>
On Friday 06 March 2009, Mark Brown wrote:
> > Later, I found out that in set_machine_constraints(),ops->enable() is
> > being called if the boot_on flag is set. What is the purpose of doing
> > this? Since the regulator is already enabled, why we are calling the
> > ops->enable() to do the same again? In my opinion, regulator_enable()
>
> This ensures that the regulator is actually turned on. Previously
> boot_on was equivalent to always_on and there was no way for a machine
> driver to turn a regulator on at startup so the semantics of boot_on
> were changed slightly to be usable to switch a regulator on at boot.
The boot_on semantics are kind of odd then ...
What I thought they meant: Bootloader turned this on.
What you describe above: Kernel turn this on during startup.
Versus normal behavior: Consumer turns it on, as needed.
I wouldn't have thought there would be a need for that
second case, since the board-specific init code can
just define a consumer that turns it on if that's what
it needs.
- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-03-07 0:07 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 9:11 Problems while designing TPS65023 regulator driver Aggarwal, Anuj
2009-02-26 14:04 ` Mark Brown
2009-03-05 12:03 ` Aggarwal, Anuj
2009-03-06 13:34 ` Mark Brown
2009-03-07 0:07 ` David Brownell [this message]
2009-03-07 16:22 ` Mark Brown
2009-03-08 20:54 ` David Brownell
2009-03-08 22:41 ` Mark Brown
2009-03-10 0:45 ` David Brownell
2009-03-10 23:33 ` Mark Brown
2009-04-03 8:03 ` Aggarwal, Anuj
2009-04-03 8:53 ` Mark Brown
2009-04-04 0:05 ` Tony Lindgren
2009-04-23 13:30 ` Trilok Soni
2009-04-23 22:17 ` David Brownell
2009-04-24 6:01 ` Trilok Soni
2009-04-24 6:05 ` Aggarwal, Anuj
2009-04-24 6:32 ` David Brownell
2009-04-24 8:12 ` Aggarwal, Anuj
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=200903061607.16825.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=anuj.aggarwal@ti.com \
--cc=broonie@sirena.org.uk \
--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