Re: [PATCH 3/3] media: i2c: imx219: Balance runtime PM use-count in resume callback

2021-03-10 Thread Lad, Prabhakar
Hi Laurent, Thank you for the review. On Wed, Mar 10, 2021 at 12:49 PM Laurent Pinchart wrote: > > Hi Prabhakar, > > Thank you for the patch. > > On Wed, Mar 10, 2021 at 12:20:14PM +, Lad Prabhakar wrote: > > The runtime PM use-count gets incremented in imx219_set_stream() call > > when stre

Re: [PATCH 3/3] media: i2c: imx219: Balance runtime PM use-count in resume callback

2021-03-10 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Wed, Mar 10, 2021 at 12:20:14PM +, Lad Prabhakar wrote: > The runtime PM use-count gets incremented in imx219_set_stream() call > when streaming is started this needs to be balanced by calling > pm_runtime_put() upon failure to start stream in resume

[PATCH 3/3] media: i2c: imx219: Balance runtime PM use-count in resume callback

2021-03-10 Thread Lad Prabhakar
The runtime PM use-count gets incremented in imx219_set_stream() call when streaming is started this needs to be balanced by calling pm_runtime_put() upon failure to start stream in resume callback. Fixes: 1283b3b8f82b9 ("media: i2c: Add driver for Sony IMX219 sensor") Reported-by: Pavel Machek S