[PATCH] regulator: max8925: fix enabled/disabled judgement mistake

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Dec 22 08:44:15 EST 2011


On Thu, Dec 22, 2011 at 09:31:22PM +0800, Haojian Zhuang wrote:
> On Thu, Dec 22, 2011 at 6:53 PM, Mark Brown

> > Does this mean that the register for enabling and disabling the register
> > doesn't always work?  If it does then doesn't that mean that the enable
> > and disable functions need to be updated as well to either put the
> > regulator into I2C mode or return an error when it isn't in I2C mode?

> According to the logic in above, we need check both registers to figure out
> whether LDO is on or off.
> Return error if it isn't in I2C mode doesn't make sense. If sequence is in one
> of power-on sequence, the LDO is already ON by default.

I don't understand how your reply follows on from my comment here?  If
the enable register doesn't control if the regulator is enabled and
disabled and it's always on then it seems fairly clear that the enable
and disable functions ought to know about this.



More information about the linux-arm-kernel mailing list