Re: [PATCH] i2c: fix missing pm_runtime_put_sync in i2c_device_probe

2020-05-05 Thread Wolfram Sang
On Thu, Apr 30, 2020 at 05:43:21PM +0200, Alain Volmat wrote: > In case of the I2C client exposes the flag I2C_CLIENT_HOST_NOTIFY, > pm_runtime_get_sync is called in order to always keep active the > adapter. However later on, pm_runtime_put_sync is never called > within the function in case of an

Re: [PATCH] i2c: fix missing pm_runtime_put_sync in i2c_device_probe

2020-05-03 Thread Jarkko Nikula
On 4/30/20 7:35 PM, Wolfram Sang wrote: On Thu, Apr 30, 2020 at 05:43:21PM +0200, Alain Volmat wrote: In case of the I2C client exposes the flag I2C_CLIENT_HOST_NOTIFY, pm_runtime_get_sync is called in order to always keep active the adapter. However later on, pm_runtime_put_sync is never

Re: [PATCH] i2c: fix missing pm_runtime_put_sync in i2c_device_probe

2020-04-30 Thread Wolfram Sang
On Thu, Apr 30, 2020 at 05:43:21PM +0200, Alain Volmat wrote: > In case of the I2C client exposes the flag I2C_CLIENT_HOST_NOTIFY, > pm_runtime_get_sync is called in order to always keep active the > adapter. However later on, pm_runtime_put_sync is never called > within the function in case of an

[PATCH] i2c: fix missing pm_runtime_put_sync in i2c_device_probe

2020-04-30 Thread Alain Volmat
In case of the I2C client exposes the flag I2C_CLIENT_HOST_NOTIFY, pm_runtime_get_sync is called in order to always keep active the adapter. However later on, pm_runtime_put_sync is never called within the function in case of an error. This commit add this error handling. Fixes: 72bfcee11cf8