mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grazvydas Ignotas <notasas@gmail.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>,
	Mike Rapoport <mike@compulab.co.il>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] regulator: Provide optional dummy regulator for consumers
Date: Sat, 13 Feb 2010 15:48:59 +0200	[thread overview]
Message-ID: <6ed0b2681002130548y3258db78o168697eb2512ba94@mail.gmail.com> (raw)
In-Reply-To: <10B19BD9-34B8-4E0E-9737-09141A37BD00@opensource.wolfsonmicro.com>

On Sat, Feb 13, 2010 at 1:26 AM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On 12 Feb 2010, at 23:01, Grazvydas Ignotas <notasas@gmail.com> wrote:
>
>> On Fri, Feb 12, 2010 at 12:18 PM, Mark Brown
>> <broonie@opensource.wolfsonmicro.com> wrote:
>>>
>>> In order to ease transitions with drivers are boards start using
>>> regulators
>>> provide an option to cause all regulator_get() calls to succeed, with a
>>> dummy always on regulator being supplied where one has not been
>>> configured.
>>> A warning is printed whenever the dummy regulator is used to aid system
>>> development.
>>>
>>> This regulator does not implement any regulator operations but will allow
>>> simple consumers which only do enable() and disable() calls to run. It
>>> is kept separate from the fixed voltage regulator to avoid Kconfig
>>> confusion on the part of users when it is extended to allow boards to
>>> explicitly use the dummy regulator to simplify cases where the majority
>>> of supplies are from fixed regulators without software control.
>>>
>>> This option is currently only effective for systems which do not specify
>>> full constriants. If required an override could also be provided to allow
>>> these systems to use the dummy regulator, though it is likely that
>>> unconfigured supplies on such systems will lead to error due to
>>> regulators being powered down more aggressively when not in use.
>>>
>>> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
>>> ---
>>>
>>
>> hm, tried intentionally nuking regulator setup on my board to test
>> dummy and drivers started failing on regulator_enable() with -1
>> (EPERM?). Looks like dummy doesn't have constraints defined, so not
>> much use of this if _enable() is failing anyway.
>
> Hrmpf. That was working for me - are you running the latest regulator code?
> There was a bug where it was requiring CHANGE_STATUS even if the regulator
> is always on, which isn't sensible since there is no possibility of actually
> changing the status. It should now only be checking for permission to change
> status if it would actually do so. There was also a patch yesterday to make
> regulators that don't define an is_enabled() report as enabled.

Oh, it appears I was missing those patches (they were not in last
linux-lest yet), now everything works as expected, thanks.

>
>> BTW, drivers/mmc/host/omap_hsmmc.c has quite a lot of logic related to
>> vcc_aux being available or not (vcc_aux is typically used to power
>> some MMC pins and is unused on devices with SD cards, like pandora). I
>> wonder if it may cause some functionality change there.
>
> Yeah, quite possibly. This sort of stuff is one of the reasons it's much
> nicer to specify full constraints where possible; it allows drivers that can
> have missing supplies to handle that.

      reply	other threads:[~2010-02-13 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 20:01 Mark Brown
2010-02-12 10:18 ` Mark Brown
2010-02-12 11:24   ` Liam Girdwood
2010-02-12 23:01   ` Grazvydas Ignotas
2010-02-12 23:26     ` Mark Brown
2010-02-13 13:48       ` Grazvydas Ignotas [this message]

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=6ed0b2681002130548y3258db78o168697eb2512ba94@mail.gmail.com \
    --to=notasas@gmail.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=mike@compulab.co.il \
    /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®