Re: [PATCH] iio: adc: exynos_adc: Replace indio_dev->mlock with own device lock
From: Krzysztof Kozlowski
Date: Thu Aug 27 2020 - 02:56:31 EST
On Wed, Aug 26, 2020 at 04:22:03PM +0300, Alexandru Ardelean wrote:
> From: Sergiu Cuciurean <sergiu.cuciurean@xxxxxxxxxx>
>
> As part of the general cleanup of indio_dev->mlock, this change replaces
> it with a local lock, to protect potential concurrent access to the
> completion callback during a conversion.
I don't know the bigger picture (and no links here for general cleanup)
but I assume it is part of wider work and that mlock is unwanted. In
such case:
Reviewed-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
If it is part of some bigger work, please put a link to lore.kernel.org
under separators ---, so everyone can get the context.
Best regards,
Krzysztof
>
> Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@xxxxxxxxxx>
> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx>
> ---
> drivers/iio/adc/exynos_adc.c | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
>