Re: [PATCH v4 10/14] regulator: of: Add support for parsing initial and suspend modes

2014-11-04 Thread Javier Martinez Canillas
Hello Krzysztof, On 11/04/2014 11:41 AM, Krzysztof Kozlowski wrote: >> +if (!of_property_read_u32(np, "regulator-initial-mode", )) { >> +if (desc && desc->map_modes) >> +constraints->initial_mode = desc->map_modes(pval); >> +else >> +

Re: [PATCH v4 10/14] regulator: of: Add support for parsing initial and suspend modes

2014-11-04 Thread Krzysztof Kozlowski
On pon, 2014-11-03 at 15:40 +0100, Javier Martinez Canillas wrote: > Some regulators support their operating mode to be changed on startup > or by consumers when the system is running while others only support > their operating mode to be changed while the system has entered in a > suspend state.

Re: [PATCH v4 10/14] regulator: of: Add support for parsing initial and suspend modes

2014-11-04 Thread Krzysztof Kozlowski
On pon, 2014-11-03 at 15:40 +0100, Javier Martinez Canillas wrote: Some regulators support their operating mode to be changed on startup or by consumers when the system is running while others only support their operating mode to be changed while the system has entered in a suspend state.

Re: [PATCH v4 10/14] regulator: of: Add support for parsing initial and suspend modes

2014-11-04 Thread Javier Martinez Canillas
Hello Krzysztof, On 11/04/2014 11:41 AM, Krzysztof Kozlowski wrote: +if (!of_property_read_u32(np, regulator-initial-mode, pval)) { +if (desc desc-map_modes) +constraints-initial_mode = desc-map_modes(pval); +else +

[PATCH v4 10/14] regulator: of: Add support for parsing initial and suspend modes

2014-11-03 Thread Javier Martinez Canillas
Some regulators support their operating mode to be changed on startup or by consumers when the system is running while others only support their operating mode to be changed while the system has entered in a suspend state. The regulator Device Tree binding documents a set of properties to

[PATCH v4 10/14] regulator: of: Add support for parsing initial and suspend modes

2014-11-03 Thread Javier Martinez Canillas
Some regulators support their operating mode to be changed on startup or by consumers when the system is running while others only support their operating mode to be changed while the system has entered in a suspend state. The regulator Device Tree binding documents a set of properties to