public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Adrian Hunter <adrian.hunter@nokia.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Linus Walleij <linus.walleij@stericsson.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Liam Girdwood <lrg@slimlogic.co.uk>,
	Tony Lindgren <tony@atomide.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>,
	Sundar Iyer <sundar.iyer@stericsson.com>,
	Daniel Mack <daniel@caiaq.de>, Pierre Ossman <pierre@ossman.eu>,
	Matt Fleming <matt@console-pimps.org>,
	David Brownell <dbrownell@users.sourceforge.net>,
	Russell King <rmk+kernel@arm.linux.org.uk>,
	Eric Miao <eric.y.miao@gmail.com>,
	Cliff Brake <cbrake@bec-systems.com>,
	"Lavinen Jarkko (Nokia-MS/Helsinki)" <jarkko.lavinen@nokia.com>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] MMC: move regulator handling closer to core v3
Date: Thu, 9 Sep 2010 14:12:52 +0100	[thread overview]
Message-ID: <20100909131251.GE25855@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <4C88D97F.2080804@nokia.com>

On Thu, Sep 09, 2010 at 03:56:31PM +0300, Adrian Hunter wrote:
> Mark Brown wrote:

> >What do you mean when you say that you would like boards to "hook
> >directly into the regulator" - what do you want to be able to do?
> >Is this the notifiers?  Do you need more of them?

> There would need to be notifiers before and after any change to the
> voltage.  However the notifiers would have to be set up before or
> during regulator initialisation because initialisation already can
> change the voltage e.g. in set_machine_constraints.

Why do you believe these notifiers are needed?  I would expect that
anything that needs pre and post change notifications like this is
actually changing the configuration itself (since if it's that sensitive
to changes it seems likely that it wouldn't be enthused about having the
configuration changed while it's trying to do stuff).

> >I can't parse this at all I'm afraid.  Could you be more specific about
> >what you mean by using enable and disable independantly of the board -
> >clearly the consumer drivers are already able to be board independant?

> For OMAP3 (and OMAP2 in some cases) the 1st SD/SDIO/MMC controller
> can operate at either 1.8V or 3V, however at 3V the board must apply
> voltage level shifting (PBIAS configuation).  Currently the
> level-shifting is done by board code that must be called before and
> after the voltage changes.  The omap_hsmmc driver calls the board
> code via callbacks in platform data (.before_set_reg and
> .after_set_reg).

This really sounds like something that's internal to the MMC controller
driver - based on your description I'm very surprised that boards even
get visibility of this.  Surely the MMC controller driver should be
taking care of configuring PBIAS itself, assuming it's something
internal to the chip?  Adding code to the regulator API so that the OMAP
MMC driver can be notified of the configuration it has applied to itself
(and any failures that ensue) feels baroque.

  reply	other threads:[~2010-09-09 13:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-05  9:05 [PATCH] MMC: move regulator handling closer to core v3 Linus Walleij
2010-09-08 22:51 ` Andrew Morton
2010-09-09  6:01   ` Adrian Hunter
2010-09-09  9:38     ` Mark Brown
2010-09-09 12:56       ` Adrian Hunter
2010-09-09 13:12         ` Mark Brown [this message]
2010-09-10 10:05           ` Adrian Hunter
2010-09-10 10:37             ` Mark Brown
2010-09-09  7:03   ` Linus Walleij

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=20100909131251.GE25855@rakim.wolfsonmicro.main \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=adrian.hunter@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=cbrake@bec-systems.com \
    --cc=daniel@caiaq.de \
    --cc=dbrownell@users.sourceforge.net \
    --cc=eric.y.miao@gmail.com \
    --cc=jarkko.lavinen@nokia.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=matt@console-pimps.org \
    --cc=pierre@ossman.eu \
    --cc=rmk+kernel@arm.linux.org.uk \
    --cc=robert.jarzmik@free.fr \
    --cc=sundar.iyer@stericsson.com \
    --cc=tony@atomide.com \
    /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