Re: [PATCHv2 7/9] v4l2-subdev: handle module refcounting here

2019-03-07 Thread Sakari Ailus
Hi Laurent, Hans, On Tue, Mar 05, 2019 at 09:52:14PM +0200, Laurent Pinchart wrote: > Hi Hans, > > (CC'ing Sakari) > > Thank you for the patch. > > On Tue, Mar 05, 2019 at 10:58:45AM +0100, hverkuil-ci...@xs4all.nl wrote: > > From: Hans Verkuil > > > > The module ownership refcounting was don

Re: [PATCHv2 7/9] v4l2-subdev: handle module refcounting here

2019-03-07 Thread Hans Verkuil
On 3/5/19 8:52 PM, Laurent Pinchart wrote: > Hi Hans, > > (CC'ing Sakari) > > Thank you for the patch. > > On Tue, Mar 05, 2019 at 10:58:45AM +0100, hverkuil-ci...@xs4all.nl wrote: >> From: Hans Verkuil >> >> The module ownership refcounting was done in media_entity_get/put, >> but that was ver

Re: [PATCHv2 7/9] v4l2-subdev: handle module refcounting here

2019-03-05 Thread Laurent Pinchart
Hi Hans, (CC'ing Sakari) Thank you for the patch. On Tue, Mar 05, 2019 at 10:58:45AM +0100, hverkuil-ci...@xs4all.nl wrote: > From: Hans Verkuil > > The module ownership refcounting was done in media_entity_get/put, > but that was very confusing and it did not work either in case an > applicat

[PATCHv2 7/9] v4l2-subdev: handle module refcounting here

2019-03-05 Thread hverkuil-cisco
From: Hans Verkuil The module ownership refcounting was done in media_entity_get/put, but that was very confusing and it did not work either in case an application had a v4l-subdevX device open and the module was unbound. When the v4l-subdevX device was closed the media_entity_put was never calle