sst-linux/drivers/iio/accel
Jonathan Cameron 7214c53e3c iio: accel: msa311: Fix failure to release runtime pm if direct mode claim fails.
[ Upstream commit 60a0cf2ebab92011055ab7db6553c0fc3c546938 ]

Reorder the claiming of direct mode and runtime pm calls to simplify
handling a little.  For correct error handling, after the reorder
iio_device_release_direct_mode() must be claimed in an error occurs
in pm_runtime_resume_and_get()

Fixes: 1ca2cfbc0c ("iio: add MEMSensing MSA311 3-axis accelerometer driver")
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250217140135.896574-7-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:36 +02:00
..
adis16201.c
adis16209.c
adxl313_core.c
adxl313_i2c.c
adxl313_spi.c
adxl313.h
adxl345_core.c
adxl345_i2c.c
adxl345_spi.c
adxl345.h
adxl355_core.c
adxl355_i2c.c
adxl355_spi.c
adxl355.h
adxl367_i2c.c
adxl367_spi.c
adxl367.c
adxl367.h
adxl372_i2c.c
adxl372_spi.c
adxl372.c
adxl372.h
bma180.c
bma220_spi.c
bma400_core.c
bma400_i2c.c
bma400_spi.c
bma400.h
bmc150-accel-core.c
bmc150-accel-i2c.c
bmc150-accel-spi.c
bmc150-accel.h
bmi088-accel-core.c
bmi088-accel-spi.c
bmi088-accel.h
cros_ec_accel_legacy.c
da280.c
da311.c
dmard06.c
dmard09.c
dmard10.c
fxls8962af-core.c
fxls8962af-i2c.c
fxls8962af-spi.c
fxls8962af.h
hid-sensor-accel-3d.c
Kconfig
kxcjk-1013.c
kxsd9-i2c.c
kxsd9-spi.c
kxsd9.c
kxsd9.h
Makefile
mc3230.c
mma7455_core.c
mma7455_i2c.c
mma7455_spi.c
mma7455.h
mma7660.c
mma8452.c
mma9551_core.c
mma9551_core.h
mma9551.c
mma9553.c
msa311.c iio: accel: msa311: Fix failure to release runtime pm if direct mode claim fails. 2025-04-10 14:33:36 +02:00
mxc4005.c
mxc6255.c
sca3000.c
sca3300.c
ssp_accel_sensor.c
st_accel_buffer.c
st_accel_core.c
st_accel_i2c.c
st_accel_spi.c
st_accel.h
stk8ba50.c
stk8312.c