[PATCH 13/17] ARM: pxa/raumfeld: add Marvell Libertas via SDIO
Mark Brown
broonie at opensource.wolfsonmicro.com
Wed Nov 25 08:36:01 EST 2009
On Wed, Nov 25, 2009 at 02:04:35PM +0100, Daniel Mack wrote:
> On Wed, Nov 25, 2009 at 11:49:47AM +0000, Mark Brown wrote:
> > Either use regulator_get_exclusive() (at which point you own the
> > regulator) or keep track of the on/off switch yourself.
> The issue I was facing here was that the mmc power enable callback was
> called more than once with the same value for 'on', so the calls were
> not balanced and the regulator driver bailed.
If you use regulator_get_exclusive() then your usage is OK since other
users can't collide with your usage, otherwise you'd need to remember
the state in your driver if the caller isn't giving you balanced
enable/disable calls.
More information about the linux-arm-kernel
mailing list