Skip to content

IIO: Accelerometers: Sparse friendly claim of direct mode

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8iio: accel: mma8452: Ensure error return on failure to matching oversampling ratiodrivers/iio/accel/mma8452.c+7 -30 replies
2/8iio: accel: mma8452: Factor out guts of write_raw() to simplify lockingdrivers/iio/accel/mma8452.c+37 -410 replies
3/8iio: accel: mma8452: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/accel/mma8452.c+6 -80 replies
4/8iio: accel: kx022a: Factor out guts of write_raw() to allow direct returnsdrivers/iio/accel/kionix-kx022a.c+35 -311 reply
5/8iio: accel: kx022a: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/accel/kionix-kx022a.c+6 -811 replies
6/8iio: accel: msa311: Fix failure to release runtime pm if direct mode claim fails.drivers/iio/accel/msa311.c+15 -110 replies
7/8iio: accel: msa311: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/accel/msa311.c+8 -100 replies
8/8iio: accel: Switch to sparse friendly iio_device_claim/release_direct()drivers/iio/accel/adxl372.c drivers/iio/accel/adxl380.c drivers/iio/accel/bma180.c +2 more+22 -270 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid LechnerMatti Vaittinen
SeriesR-b
1/8
2/8
3/8
4/8R-b
5/8R-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] IIO: Accelerometers: Sparse friendly claim of direct mode

From: Jonathan Cameron <[email protected]>

Note that a number of the drivers touched in this series have no obvious active maintainer, so it would be much appreciated if anyone has time to take a look!

This is effectively part 2 of what will probably be around 5 series focused on moving from iio_device_claim/release_direct_mode() to iio_device_claim/release_direct(). The new form is more consistent with conditional locking semantics and sparse markings have been added that let us detect miss-balance between claim and release.

More details can be found in the cover letter of the first series:
https://lore.kernel.org/all/[email protected]/

This series focuses on the accelerometer drivers. There are a couple of fixes in here that showed up during the conversion. They are old issues in error paths that I guess no one hit in practice, so I see no reason to rush them in before the next merge window.

Jonathan Cameron (8):
iio: accel: mma8452: Ensure error return on failure to matching
oversampling ratio
iio: accel: mma8452: Factor out guts of write_raw() to simplify
locking
iio: accel: mma8452: Switch to sparse friendly
iio_device_claim/release_direct()
iio: accel: kx022a: Factor out guts of write_raw() to allow direct
returns
iio: accel: kx022a: Switch to sparse friendly
iio_device_claim/release_direct()
iio: accel: msa311: Fix failure to release runtime pm if direct mode
claim fails.
iio: accel: msa311: Switch to sparse friendly
iio_device_claim/release_direct()
iio: accel: Switch to sparse friendly
iio_device_claim/release_direct()

 drivers/iio/accel/adxl372.c           |  7 +--
 drivers/iio/accel/adxl380.c           |  7 +--
 drivers/iio/accel/bma180.c            |  7 +--
 drivers/iio/accel/bmi088-accel-core.c |  7 ++-
 drivers/iio/accel/fxls8962af-core.c   | 21 +++----
 drivers/iio/accel/kionix-kx022a.c     | 74 ++++++++++++-----------
 drivers/iio/accel/mma8452.c           | 86 +++++++++++++--------------
 drivers/iio/accel/msa311.c            | 32 +++++-----
 8 files changed, 119 insertions(+), 122 deletions(-)
Signature · 1 line
2.48.1