Re: [PATCH v2 1/2] i2c: imx: Fix PM runtime inbalance in probe error path

2020-06-14 Thread Krzysztof Kozlowski
On Sun, Jun 14, 2020 at 12:29:03PM +0200, Krzysztof Kozlowski wrote: > When pm_runtime_get_sync() fails in probe(), the error path should not > call pm_runtime_put_noidle(). This would lead to inbalance in > usage_count. > > Fixes: 588eb93ea49f ("i2c: imx: add runtime pm support to improve the >

[PATCH v2 1/2] i2c: imx: Fix PM runtime inbalance in probe error path

2020-06-14 Thread Krzysztof Kozlowski
When pm_runtime_get_sync() fails in probe(), the error path should not call pm_runtime_put_noidle(). This would lead to inbalance in usage_count. Fixes: 588eb93ea49f ("i2c: imx: add runtime pm support to improve the performance") Cc: Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1