From: Mark Brown <broonie@kernel.org>
To: Andrea Adami <andrea.adami@gmail.com>
Cc: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>,
Russell King <linux@arm.linux.org.uk>,
linux-kernel@vger.kernel.org, Marko Katic <dromede@gmail.com>
Subject: Re: [PATCH] mmc: pxamci: Refactor regulator support
Date: Mon, 22 Jul 2013 12:03:41 +0100 [thread overview]
Message-ID: <20130722110341.GR9858@sirena.org.uk> (raw)
In-Reply-To: <1374361668-3184-1-git-send-email-andrea.adami@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1551 bytes --]
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.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-07-22 11:04 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 [this message]
2013-07-25 21:03 ` Andrea Adami
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=20130722110341.GR9858@sirena.org.uk \
--to=broonie@kernel.org \
--cc=andrea.adami@gmail.com \
--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®