Re: [PATCH v7 02/34] i2c: tegra: Add missing pm_runtime_put()

2020-09-21 Thread Thierry Reding
On Wed, 09 Sep 2020 01:39:34 +0300, Dmitry Osipenko wrote: > The pm_runtime_get_sync() always bumps refcount regardless of whether it > succeeds or fails. Hence driver is responsible for restoring of the RPM > refcounting. This patch adds missing RPM puts which restore refcounting > in a case of

Re: [PATCH v7 02/34] i2c: tegra: Add missing pm_runtime_put()

2020-09-17 Thread Thierry Reding
On Wed, Sep 09, 2020 at 01:39:34AM +0300, Dmitry Osipenko wrote: > The pm_runtime_get_sync() always bumps refcount regardless of whether it > succeeds or fails. Hence driver is responsible for restoring of the RPM > refcounting. This patch adds missing RPM puts which restore refcounting > in a

[PATCH v7 02/34] i2c: tegra: Add missing pm_runtime_put()

2020-09-08 Thread Dmitry Osipenko
The pm_runtime_get_sync() always bumps refcount regardless of whether it succeeds or fails. Hence driver is responsible for restoring of the RPM refcounting. This patch adds missing RPM puts which restore refcounting in a case of pm_runtime_get_sync() error. Suggested-by: Andy Shevchenko