Re: [PATCH] [v2] extcon: arizona: Fix runtime PM imbalance on error

2020-05-24 Thread Chanwoo Choi
Hi Dinghao Liu, On 5/23/20 3:17 PM, Dinghao Liu wrote: > When arizona_request_irq() returns an error code, a > pairing runtime PM usage counter decrement is needed > to keep the counter balanced. For error paths after > this function, things are the same. > > Also, remove calls to pm_runtime_disa

[PATCH] [v2] extcon: arizona: Fix runtime PM imbalance on error

2020-05-22 Thread Dinghao Liu
When arizona_request_irq() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. For error paths after this function, things are the same. Also, remove calls to pm_runtime_disable() when pm_runtime_enable() has not been executed. Signed-off-by