WSL2-Linux-Kernel/drivers/iio/common/st_sensors
Miquel Raynal 3692f17e70 iio: st_sensors: Add a local lock for protecting odr
[ Upstream commit 474010127e ]

Right now the (framework) mlock lock is (ab)used for multiple purposes:
1- protecting concurrent accesses over the odr local cache
2- avoid changing samplig frequency whilst buffer is running

Let's start by handling situation #1 with a local lock.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220207143840.707510-7-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:20 +02:00
..
Kconfig iio: st_sensors: Fix build error 2019-08-25 18:57:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
st_sensors_buffer.c iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
st_sensors_core.c iio: st_sensors: Add a local lock for protecting odr 2022-06-14 18:36:20 +02:00
st_sensors_core.h iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
st_sensors_i2c.c iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
st_sensors_spi.c iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
st_sensors_trigger.c iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00