Re: [RFT][PATCH 1/3] regulator: ab8500-ext: Don't allow set idle mode if info->cfg->hwreq is set

2013-04-16 Thread Axel Lin
2013/4/16 Bengt Jönsson : > On 04/10/2013 02:54 PM, Axel Lin wrote: >> >> The regulator always on with high power mode if info->cfg->hwreq is set. >> >> If we allow set idle mode when info->cfg->hwreq is set, get_mode() returns >> REGULATOR_MODE_IDLE but the regulator actually is in

Re: [RFT][PATCH 1/3] regulator: ab8500-ext: Don't allow set idle mode if info->cfg->hwreq is set

2013-04-16 Thread Bengt Jönsson
On 04/10/2013 02:54 PM, Axel Lin wrote: The regulator always on with high power mode if info->cfg->hwreq is set. If we allow set idle mode when info->cfg->hwreq is set, get_mode() returns REGULATOR_MODE_IDLE but the regulator actually is in REGULATOR_MODE_NORMAL mode. This patch avoid

Re: [RFT][PATCH 1/3] regulator: ab8500-ext: Don't allow set idle mode if info-cfg-hwreq is set

2013-04-16 Thread Bengt Jönsson
On 04/10/2013 02:54 PM, Axel Lin wrote: The regulator always on with high power mode if info-cfg-hwreq is set. If we allow set idle mode when info-cfg-hwreq is set, get_mode() returns REGULATOR_MODE_IDLE but the regulator actually is in REGULATOR_MODE_NORMAL mode. This patch avoid inconsistent

Re: [RFT][PATCH 1/3] regulator: ab8500-ext: Don't allow set idle mode if info-cfg-hwreq is set

2013-04-16 Thread Axel Lin
2013/4/16 Bengt Jönsson bengt.g.jons...@stericsson.com: On 04/10/2013 02:54 PM, Axel Lin wrote: The regulator always on with high power mode if info-cfg-hwreq is set. If we allow set idle mode when info-cfg-hwreq is set, get_mode() returns REGULATOR_MODE_IDLE but the regulator actually is in

[RFT][PATCH 1/3] regulator: ab8500-ext: Don't allow set idle mode if info->cfg->hwreq is set

2013-04-10 Thread Axel Lin
The regulator always on with high power mode if info->cfg->hwreq is set. If we allow set idle mode when info->cfg->hwreq is set, get_mode() returns REGULATOR_MODE_IDLE but the regulator actually is in REGULATOR_MODE_NORMAL mode. This patch avoid inconsistent status return by get_mode().

[RFT][PATCH 1/3] regulator: ab8500-ext: Don't allow set idle mode if info-cfg-hwreq is set

2013-04-10 Thread Axel Lin
The regulator always on with high power mode if info-cfg-hwreq is set. If we allow set idle mode when info-cfg-hwreq is set, get_mode() returns REGULATOR_MODE_IDLE but the regulator actually is in REGULATOR_MODE_NORMAL mode. This patch avoid inconsistent status return by get_mode().