mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrea Adami <andrea.adami@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>,
	Russell King <linux@arm.linux.org.uk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Marko Katic <dromede@gmail.com>
Subject: Re: [PATCH] mmc: pxamci: Refactor regulator support
Date: Thu, 25 Jul 2013 23:03:52 +0200	[thread overview]
Message-ID: <CAAQYJAteA2aQd5XRpi3NS-RazDoeWWbGFeUYcdP1kYc+sgmMUQ@mail.gmail.com> (raw)
In-Reply-To: <20130722110341.GR9858@sirena.org.uk>

On Mon, Jul 22, 2013 at 1:03 PM, Mark Brown <broonie@kernel.org> wrote:
> On Sun, Jul 21, 2013 at 01:07:48AM +0200, Andrea Adami wrote:
>
>> The ADS7846 driver _requires_ the use of a voltage regulator
>> or if not present, CONFIG_REGULATOR_DUMMY should be used for proper operation.
>> This was made mandatory by the following commit:
>
> No, CONFIG_REGULATOR_DUMMY should *never* be used in production.
>
>> The ADS7846 in spitz machines is not connected to
>> any power regulator so it needs CONFIG_REGULATOR_DUMMY enabled.
>
> I don't think that's the case, it would be a very unusual piece of
> silicon that was able to operate without power.  It may be that it's not
> using a software controllable regulator but there will be one or more
> power supplies.  Judging by your problem here it seems like there is
> actually a software controllable regulator though...
>
>> However, enabling CONFIG_REGULATOR and CONFIG_REGULATOR_DUMMY
>> will break pxamci driver and cause the following error output:
>
> This is why you should never use CONFIG_REGULATOR_DUMMY in production,
> it's just a crutch to help things boot during development.
>
>> Regulator support in pxamci_init_ocr() is not
>> written with the existence of the dummy regulator driver in
>> mind. It does not check the return value of mmc_regulator_get_ocrmask()
>> and it will only fall back to platform data if no regulator was found.
>
> No regulator driver should be written with CONFIG_REGULATOR_DUMMY in
> mind.  My guess here is that your custom callbacks for this board should
> be being replaced by a regulator, for example the fixed voltage
> regulator if there's only one voltage supported.


Thanks Mark,

patch is withdrawn.

In fact adding regulators has been self-inflicted pain...
Poodle and spitz boot normally with # CONFIG_REGULATOR is not set.

Sorry for the noise

Andrea Adami

      reply	other threads:[~2013-07-25 21:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-20 23:07 Andrea Adami
2013-07-22 11:03 ` Mark Brown
2013-07-25 21:03   ` Andrea Adami [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=CAAQYJAteA2aQd5XRpi3NS-RazDoeWWbGFeUYcdP1kYc+sgmMUQ@mail.gmail.com \
    --to=andrea.adami@gmail.com \
    --cc=broonie@kernel.org \
    --cc=cjb@laptop.org \
    --cc=dromede@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    /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®