Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-18 Thread Lars-Peter Clausen
On 04/18/2018 11:35 AM, Jonathan Cameron wrote: > On Tue, 17 Apr 2018 12:19:06 -0700 > Dmitry Torokhov wrote: > >> Hi Eugen, >> >> On Tue, Apr 17, 2018 at 10:39:24AM +0300, Eugen Hristev wrote: >>> >>> >>> On 17.04.2018 02:58, Dmitry Torokhov wrote: On Sun, Apr 15, 2018 at 08:33:21PM +0100

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-18 Thread Jonathan Cameron
On Tue, 17 Apr 2018 12:19:06 -0700 Dmitry Torokhov wrote: > Hi Eugen, > > On Tue, Apr 17, 2018 at 10:39:24AM +0300, Eugen Hristev wrote: > > > > > > On 17.04.2018 02:58, Dmitry Torokhov wrote: > > > On Sun, Apr 15, 2018 at 08:33:21PM +0100, Jonathan Cameron wrote: > > > > On Tue, 10 Apr 20

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-17 Thread Dmitry Torokhov
Hi Eugen, On Tue, Apr 17, 2018 at 10:39:24AM +0300, Eugen Hristev wrote: > > > On 17.04.2018 02:58, Dmitry Torokhov wrote: > > On Sun, Apr 15, 2018 at 08:33:21PM +0100, Jonathan Cameron wrote: > > > On Tue, 10 Apr 2018 11:57:52 +0300 > > > Eugen Hristev wrote: > > > > > > > When requesting cha

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-17 Thread Eugen Hristev
On 17.04.2018 02:58, Dmitry Torokhov wrote: On Sun, Apr 15, 2018 at 08:33:21PM +0100, Jonathan Cameron wrote: On Tue, 10 Apr 2018 11:57:52 +0300 Eugen Hristev wrote: When requesting channels for a particular consumer device, besides requesting the device (incrementing the reference counter)

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-16 Thread Dmitry Torokhov
On Sun, Apr 15, 2018 at 08:33:21PM +0100, Jonathan Cameron wrote: > On Tue, 10 Apr 2018 11:57:52 +0300 > Eugen Hristev wrote: > > > When requesting channels for a particular consumer device, > > besides requesting the device (incrementing the reference counter), also > > do it for the driver modu

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-15 Thread Jonathan Cameron
On Tue, 10 Apr 2018 11:57:52 +0300 Eugen Hristev wrote: > When requesting channels for a particular consumer device, > besides requesting the device (incrementing the reference counter), also > do it for the driver module of the iio dev. This will avoid the situation > where the producer IIO devi

[PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-10 Thread Eugen Hristev
When requesting channels for a particular consumer device, besides requesting the device (incrementing the reference counter), also do it for the driver module of the iio dev. This will avoid the situation where the producer IIO device can be removed and the consumer is still present in the kernel.