mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eduardo Valentin <eduardo.valentin@nokia.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "Hogander Jouni (Nokia-D/Tampere)" <jouni.hogander@nokia.com>,
	"De-Schrijver Peter (Nokia-D/Helsinki)" 
	<Peter.De-Schrijver@nokia.com>,
	"Keski-Saari Juha.1 (EXT-Teleca/Helsinki)" 
	<ext-juha.1.keski-saari@nokia.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Doubt about Regulator Framework and VBAT use case
Date: Mon, 30 Nov 2009 12:41:02 +0200	[thread overview]
Message-ID: <20091130104102.GA16608@esdhcp037198.research.nokia.com> (raw)

Hello Mark and Liam,

I'm writing to ask about VBAT use case. What is the expected
way to use regulator framework in case of rail coming from battery?
Should it be added to the regulator framework at all?

In that case, the rail should not be controllable. So I don't see
any reason to add it to the regulator framework board definitions,
as we should not be controlling it.

However, drivers for devices on that rail would require their regulator anyway.
And I guess the point would be that drivers should not be aware that they are on VBAT
or any other rail.

So, what's the correct way to solve this?

- Should drivers fail nicely if a regulator_get fail? And continue even if one fails.
- Should drivers disable regfw usage completely in the driver if regulator_get doesn't
give valid regulator ?
- or Should a fake fixed regulator be added for vbat so drivers can still get a valid
regulator with regulator_get.

The last options seams to be the one that does not require much changes on drivers.
But it will be adding a regulator that does basically nothing in the system.

BR,

-- 
Eduardo Valentin

             reply	other threads:[~2009-11-30 10:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 10:41 Eduardo Valentin [this message]
2009-11-30 10:43 ` Eduardo Valentin
2009-11-30 11:45 ` Mark Brown
2009-12-02 11:32   ` Högander Jouni
2009-12-02 12:02     ` Mark Brown
2009-12-02 13:55       ` Högander Jouni

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=20091130104102.GA16608@esdhcp037198.research.nokia.com \
    --to=eduardo.valentin@nokia.com \
    --cc=Peter.De-Schrijver@nokia.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=ext-juha.1.keski-saari@nokia.com \
    --cc=jouni.hogander@nokia.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®