Re: [PATCH] [v2] hwrng: ks-sa - Fix runtime PM imbalance on error

2020-06-11 Thread Herbert Xu
On Thu, May 28, 2020 at 03:21:04PM +0800, 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 balanced. > > Signed-off-by: Dinghao Liu > --- >

Re: [PATCH] [v2] hwrng: ks-sa - Fix runtime PM imbalance on error

2020-05-28 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hello Dinghao, On Thu, 2020-05-28 at 15:21 +0800, 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 balanced. > > Signed-off-by: Dinghao Liu

[PATCH] [v2] hwrng: ks-sa - Fix runtime PM imbalance on error

2020-05-28 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_put_sy