[PATCH 1/1] regulator/fixed: set constraints.apply_uV to 0

Richard Zhao richard.zhao at freescale.com
Fri Dec 30 20:26:30 EST 2011


Hi Mark,

On Sat, Dec 31, 2011 at 01:02:40AM +0000, Mark Brown wrote:
> On Fri, Dec 30, 2011 at 07:08:43PM +0800, Richard Zhao wrote:
> > On Fri, Dec 30, 2011 at 10:48:50AM +0000, Mark Brown wrote:
> 
> > > It shouldn't actually be passing on the constraint setting the voltage
> > > when it constructs the constraints.
The below code is where fixed regulator construct the constraints.
> 
> > --- a/drivers/regulator/of_regulator.c
> > +++ b/drivers/regulator/of_regulator.c
> > @@ -34,9 +34,6 @@ static void of_get_regulation_constraints(struct device_node *np,
> >         /* Voltage change possible? */
> >         if (constraints->min_uV != constraints->max_uV)
> >                 constraints->valid_ops_mask |= REGULATOR_CHANGE_VOLTAGE;
> > -       /* Only one voltage?  Then make sure it's set. */
> > -       if (constraints->min_uV == constraints->max_uV)
> > -               constraints->apply_uV = true;
> 
> No!  That's going to break *all* other users.
The above code follows your idea. why you still say no?
Could you please past some code to show your suggested solution,
or you send out a patch to fix it?

Thanks
Richard




More information about the linux-arm-kernel mailing list