Re: [PATCH v2] regulator: Add GPIO enable control to fixed voltageregulator driver

From: Mark Brown
Date: Fri Jul 31 2009 - 17:44:16 EST


On Fri, Jul 31, 2009 at 11:32:32PM +0300, Roger Quadros wrote:

> Not having gpio_get_direction() in gpiolib is a limitation I think.
> Can we just do the following for now ? (i.e. disable regulator by default)
> Will there be any glitch? If yes, then how?

If you're going to do this then like I say you should make the default
state controllable by platform data. If we unconditionally disable the
regulator then if, for example, the regulator is controlling the display
backlight and it's on when Linux get controls then the user will see the
backlight blink off then on during startup.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/