All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Ball <cjb@laptop.org>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	linux-mmc@vger.kernel.org, Liam Girdwood <lrg@ti.com>
Subject: Re: [PATCH] mmc: core: Quieten "could not set regulator OCR" error.
Date: Thu, 30 Aug 2012 13:25:58 -0400	[thread overview]
Message-ID: <873934qok9.fsf@octavius.laptop.org> (raw)
In-Reply-To: <20120830171214.GD4356@opensource.wolfsonmicro.com> (Mark Brown's message of "Thu, 30 Aug 2012 10:12:14 -0700")

Hi,

On Thu, Aug 30 2012, Mark Brown wrote:
>> Looks like regulator_desc->name should be "dummy", but I think it would
>> be an API violation for us to start caring about that.  Mark, would you
>> be interested in offering an "regulator_is_dummy(supply)" function so
>> that we can limit our error messages to non-dummy supplies?
>
> No, that's a terrible idea as previously discussed.
>
> The *sole* purpose of the dummy regulator driver is to provide a crutch
> to keep systems with broken configuraitons running, it's not indended to
> be used on production systems and is there solely as an aid for
> development.  This is why it can only be enabled via Kconfig.  If there
> is no software controllable regulator there the board should be
> providing fixed regulator.

It's being used on production systems, else I wouldn't be responding
to bug reports from distro users of x86 laptops.  Turns out that distro
kernel maintainers often like to answer "y" to new Kconfig options
without reading/understanding them fully.

> Conversely there is nothing stopping other regulator drivers having
> similar properties to the dummy driver, or constraints stopping them
> implementing things.  If the MMC framework wants to silently accept
> regulators that don't allow the voltage to be set then the MMC framework
> should enumerate the range of voltages which can be set using the
> regulator it has and then take appropriate action.

I didn't do this because I don't want to silently accept real regulators
with insufficient voltage ranges, because that would make it harder to
debug real MMC failures.

Sounds like my response to the bug reports should be "persuade your
distro kernel maintainers to turn off CONFIG_REGULATOR" -- I'll try
doing that.

Thanks,

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

  reply	other threads:[~2012-08-30 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 23:33 [PATCH] mmc: core: Quieten "could not set regulator OCR" error Chris Ball
2012-08-29 12:09 ` Ulf Hansson
2012-08-29 13:08   ` Chris Ball
2012-08-30 17:12     ` Mark Brown
2012-08-30 17:25       ` Chris Ball [this message]
2012-08-30 17:30         ` Mark Brown

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=873934qok9.fsf@octavius.laptop.org \
    --to=cjb@laptop.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=ulf.hansson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.