Re: [PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-11-07 Thread Claudiu.Beznea
On 07.11.2018 16:53, Mark Brown wrote: > On Fri, Oct 26, 2018 at 04:19:48PM +, claudiu.bez...@microchip.com wrote: > >> +static unsigned int act8945a_of_map_mode(unsigned int mode) >> +{ >> +if (mode == ACT8945A_DCDC_MODE_POWER_SAVING) >> +return REGULATOR_MODE_STANDBY; >>

Re: [PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-11-07 Thread Claudiu.Beznea
On 07.11.2018 16:53, Mark Brown wrote: > On Fri, Oct 26, 2018 at 04:19:48PM +, claudiu.bez...@microchip.com wrote: > >> +static unsigned int act8945a_of_map_mode(unsigned int mode) >> +{ >> +if (mode == ACT8945A_DCDC_MODE_POWER_SAVING) >> +return REGULATOR_MODE_STANDBY; >>

Re: [PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-11-07 Thread Mark Brown
On Fri, Oct 26, 2018 at 04:19:48PM +, claudiu.bez...@microchip.com wrote: > +static unsigned int act8945a_of_map_mode(unsigned int mode) > +{ > + if (mode == ACT8945A_DCDC_MODE_POWER_SAVING) > + return REGULATOR_MODE_STANDBY; > + > + return REGULATOR_MODE_NORMAL; > +}

Re: [PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-11-07 Thread Mark Brown
On Fri, Oct 26, 2018 at 04:19:48PM +, claudiu.bez...@microchip.com wrote: > +static unsigned int act8945a_of_map_mode(unsigned int mode) > +{ > + if (mode == ACT8945A_DCDC_MODE_POWER_SAVING) > + return REGULATOR_MODE_STANDBY; > + > + return REGULATOR_MODE_NORMAL; > +}

[PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-10-26 Thread Claudiu.Beznea
From: Boris Brezillon The regulator supports a dedicated suspend mode. Implement the appropriate ->set_suspend_xx() hooks, add support for ->set_mode(), and provide basic PM ops functionalities to setup the regulator in a suspend state when the system is entering suspend. We also implement the

[PATCH 1/2] regulator: act8945: Implement PM functionalities

2018-10-26 Thread Claudiu.Beznea
From: Boris Brezillon The regulator supports a dedicated suspend mode. Implement the appropriate ->set_suspend_xx() hooks, add support for ->set_mode(), and provide basic PM ops functionalities to setup the regulator in a suspend state when the system is entering suspend. We also implement the