Re: [PATCH] [v2] i2c: stm32f7: Fix runtime PM imbalance on error

2020-11-13 Thread Pierre Yves MORDRET
Hello Looks good to me Reviewed-by: Pierre-Yves MORDRET Thx Regards On 6/1/20 7:56 AM, Alain Volmat wrote: > Hi, > > Reviewed-by: Alain Volmat > > Thanks, > Alain > > On Wed, May 27, 2020 at 01:38:53AM +, Dinghao Liu wrote: >> pm_runtime_get_sync() increments the runtime PM usage coun

Re: [PATCH] [v2] i2c: stm32f7: Fix runtime PM imbalance on error

2020-05-31 Thread Alain Volmat
Hi, Reviewed-by: Alain Volmat Thanks, Alain On Wed, May 27, 2020 at 01:38:53AM +, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter bal

[PATCH] [v2] i2c: stm32f7: Fix runtime PM imbalance on error

2020-05-26 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Use pm_runtime_put_noidle() instead of pm_runtime_