Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-09-16 Thread Fabrice Gasnier
On 9/16/20 11:23 AM, Alexandru Ardelean wrote: > From: Sergiu Cuciurean > > As part of the general cleanup of indio_dev->mlock, this change replaces > it with a local lock. The lock protects against potential races when > reading the CR reg and then updating, so that the state of pm_runtime > is

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-09-16 Thread Jonathan Cameron
On Wed, 16 Sep 2020 12:18:02 +0200 Fabrice Gasnier wrote: > On 9/16/20 11:23 AM, Alexandru Ardelean wrote: > > From: Sergiu Cuciurean > > > > As part of the general cleanup of indio_dev->mlock, this change replaces > > it with a local lock. The lock protects against potential races when > > rea

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-09-01 Thread Alexandru Ardelean
On Sat, Aug 29, 2020 at 6:46 PM Jonathan Cameron wrote: > > On Thu, 27 Aug 2020 13:00:36 +0300 > Alexandru Ardelean wrote: > > > On Thu, Aug 27, 2020 at 12:03 PM Fabrice Gasnier > > wrote: > > > > > > On 8/27/20 10:55 AM, Alexandru Ardelean wrote: > > > > On Wed, Aug 26, 2020 at 3:03 PM Alexand

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-08-29 Thread Jonathan Cameron
On Thu, 27 Aug 2020 13:00:36 +0300 Alexandru Ardelean wrote: > On Thu, Aug 27, 2020 at 12:03 PM Fabrice Gasnier > wrote: > > > > On 8/27/20 10:55 AM, Alexandru Ardelean wrote: > > > On Wed, Aug 26, 2020 at 3:03 PM Alexandru Ardelean > > > wrote: > > >> From: Sergiu Cuciurean > > >> > > >>

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-08-27 Thread Alexandru Ardelean
On Thu, Aug 27, 2020 at 12:03 PM Fabrice Gasnier wrote: > > On 8/27/20 10:55 AM, Alexandru Ardelean wrote: > > On Wed, Aug 26, 2020 at 3:03 PM Alexandru Ardelean > > wrote: > >> From: Sergiu Cuciurean > >> > >> As part of the general cleanup of indio_dev->mlock, this change replaces > >> it with

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-08-27 Thread Fabrice Gasnier
On 8/27/20 10:55 AM, Alexandru Ardelean wrote: > On Wed, Aug 26, 2020 at 3:03 PM Alexandru Ardelean > wrote: >> From: Sergiu Cuciurean >> >> As part of the general cleanup of indio_dev->mlock, this change replaces >> it with a local lock. The lock protects against potential races when >> reading

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-08-27 Thread Alexandru Ardelean
On Wed, Aug 26, 2020 at 3:03 PM Alexandru Ardelean wrote: > > From: Sergiu Cuciurean > > As part of the general cleanup of indio_dev->mlock, this change replaces > it with a local lock. The lock protects against potential races when > reading the CR reg and then updating, so that the state of pm_