[Linux-stm32] [PATCH] i2c: fix missing pm_runtime_put_sync in i2c_device_probe

Wolfram Sang wsa at the-dreams.de
Tue May 5 14:28:17 UTC 2020


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 error. This commit add this
> error handling.
> 
> Fixes: 72bfcee11cf8 ("i2c: Prevent runtime suspend of adapter when Host Notify is required")
> Signed-off-by: Alain Volmat <alain.volmat at st.com>

Applied to for-current, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://st-md-mailman.stormreply.com/pipermail/linux-stm32/attachments/20200505/cd28f551/attachment.sig>


More information about the Linux-stm32 mailing list