Re: [PATCH] media: ov7740: fix runtime pm initialization

2019-02-18 Thread Eugen.Hristev
On 17.02.2019 17:17, Akinobu Mita wrote: > The runtime PM of this device is enabled after v4l2_ctrl_handler_setup(), > and this makes this device's runtime PM usage count a negative value. > > The ov7740_set_ctrl() tries to do something only if the device's runtime > PM usage counter is nonzero.

[PATCH] media: ov7740: fix runtime pm initialization

2019-02-17 Thread Akinobu Mita
The runtime PM of this device is enabled after v4l2_ctrl_handler_setup(), and this makes this device's runtime PM usage count a negative value. The ov7740_set_ctrl() tries to do something only if the device's runtime PM usage counter is nonzero. ov7740_set_ctrl() { if (!pm_runtime_get_if_