Re: [PATCH] i2c: imx: Fix PM device usage count

2018-02-26 Thread Rafael J. Wysocki
On Sunday, February 25, 2018 8:57:48 PM CET Uwe Kleine-König wrote: > On Sat, Feb 24, 2018 at 11:43:28PM +0100, Tobias Jordan wrote: > > pm_runtime_get_sync() increases the device's usage count even when > > reporting an error, so add a call to pm_runtime_put_noidle() in the > > related error branc

Re: [PATCH] i2c: imx: Fix PM device usage count

2018-02-25 Thread Uwe Kleine-König
On Sat, Feb 24, 2018 at 11:43:28PM +0100, Tobias Jordan wrote: > pm_runtime_get_sync() increases the device's usage count even when > reporting an error, so add a call to pm_runtime_put_noidle() in the > related error branches. > > Fixes: 588eb93ea49f ("i2c: imx: add runtime pm support to improve

[PATCH] i2c: imx: Fix PM device usage count

2018-02-24 Thread Tobias Jordan
pm_runtime_get_sync() increases the device's usage count even when reporting an error, so add a call to pm_runtime_put_noidle() in the related error branches. Fixes: 588eb93ea49f ("i2c: imx: add runtime pm support to improve the performance") Signed-off-by: Tobias Jordan --- In i2c_imx_xfer(),