[PATCH v2 03/16] iio: adc: imx7d_adc: do not use internal iio_dev lock

Jonathan Cameron jic23 at kernel.org
Sun Oct 9 04:56:58 PDT 2022


On Sun, 9 Oct 2022 02:00:22 +0000
Bough Chen <haibo.chen at nxp.com> wrote:

> > -----Original Message-----
> > From: Nuno Sá <nuno.sa at analog.com>
> > Sent: 2022年10月4日 21:49
> > To: linux-amlogic at lists.infradead.org; dl-linux-imx <linux-imx at nxp.com>;
> > linux-iio at vger.kernel.org; linux-arm-kernel at lists.infradead.org;
> > linux-rockchip at lists.infradead.org
> > Cc: Heiko Stuebner <heiko at sntech.de>; Martin Blumenstingl
> > <martin.blumenstingl at googlemail.com>; Neil Armstrong
> > <narmstrong at baylibre.com>; Shawn Guo <shawnguo at kernel.org>; Lars-Peter
> > Clausen <lars at metafoo.de>; Jyoti Bhayana <jbhayana at google.com>; Hans de
> > Goede <hdegoede at redhat.com>; Andriy Tryshnivskyy
> > <andriy.tryshnivskyy at opensynergy.com>; Pengutronix Kernel Team
> > <kernel at pengutronix.de>; Miquel Raynal <miquel.raynal at bootlin.com>; Cixi
> > Geng <cixi.geng1 at unisoc.com>; Baolin Wang
> > <baolin.wang at linux.alibaba.com>; Ciprian Regus <ciprian.regus at analog.com>;
> > Fabio Estevam <festevam at gmail.com>; Nuno Sá <nuno.sa at analog.com>;
> > Sascha Hauer <s.hauer at pengutronix.de>; Alexandru Ardelean
> > <aardelean at deviqon.com>; Florian Boor <florian.boor at kernelconcepts.de>;
> > Michael Hennerich <Michael.Hennerich at analog.com>; Orson Zhai
> > <orsonzhai at gmail.com>; Chen-Yu Tsai <wens at csie.org>; Chunyan Zhang
> > <zhang.lyra at gmail.com>; Vladimir Zapolskiy <vz at mleia.com>; Andy
> > Shevchenko <andy.shevchenko at gmail.com>; Jerome Brunet
> > <jbrunet at baylibre.com>; Bough Chen <haibo.chen at nxp.com>; Kevin Hilman
> > <khilman at baylibre.com>; Jonathan Cameron <jic23 at kernel.org>
> > Subject: [PATCH v2 03/16] iio: adc: imx7d_adc: do not use internal iio_dev lock
> > 
> > The iio_device lock is only meant for internal use. Hence define a device local
> > lock to protect against concurrent accesses.
> > 
> > While at it, properly include "mutex.h" for mutex related APIs.
> > 
> > Signed-off-by: Nuno Sá <nuno.sa at analog.com>  
> 
> Reviewed-by: Haibo Chen <haibo.chen at nxp.com>
Applied to the togreg branch of iio.git and pushed out as testing for 0-day
to take a look at it.

Note I'll be rebasing on rc1 once available.

Thanks,

Jonathan



More information about the linux-amlogic mailing list