Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/8] IIO: Accelerometers: Sparse friendly claim of direct mode
@ 2025-02-17 14:01 Jonathan Cameron
  2025-02-17 14:01 ` [PATCH 1/8] iio: accel: mma8452: Ensure error return on failure to matching oversampling ratio Jonathan Cameron
                   ` (8 more replies)
  0 siblings, 9 replies; 23+ messages in thread
From: Jonathan Cameron @ 2025-02-17 14:01 UTC (permalink / raw)
  To: linux-iio
  Cc: David Lechner, Nuno Sá, Antoniu Miclaus, Matti Vaittinen,
	Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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/20250209180624.701140-1-jic23@kernel.org/

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(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2025-02-22 12:42 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-17 14:01 [PATCH 0/8] IIO: Accelerometers: Sparse friendly claim of direct mode Jonathan Cameron
2025-02-17 14:01 ` [PATCH 1/8] iio: accel: mma8452: Ensure error return on failure to matching oversampling ratio Jonathan Cameron
2025-02-17 14:01 ` [PATCH 2/8] iio: accel: mma8452: Factor out guts of write_raw() to simplify locking Jonathan Cameron
2025-02-17 14:01 ` [PATCH 3/8] iio: accel: mma8452: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-17 14:01 ` [PATCH 4/8] iio: accel: kx022a: Factor out guts of write_raw() to allow direct returns Jonathan Cameron
2025-02-18  7:32   ` Matti Vaittinen
2025-02-17 14:01 ` [PATCH 5/8] iio: accel: kx022a: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-18  7:39   ` Matti Vaittinen
2025-02-18 15:42     ` David Lechner
2025-02-19  5:36       ` Matti Vaittinen
2025-02-19 10:51         ` Nuno Sá
2025-02-19 12:21           ` Matti Vaittinen
2025-02-19 15:25             ` David Lechner
2025-02-19 19:05               ` Jonathan Cameron
2025-02-20  6:31                 ` Matti Vaittinen
2025-02-20 17:49                   ` Jonathan Cameron
2025-02-20  6:26               ` Matti Vaittinen
2025-02-19 16:06             ` Jonathan Cameron
2025-02-17 14:01 ` [PATCH 6/8] iio: accel: msa311: Fix failure to release runtime pm if direct mode claim fails Jonathan Cameron
2025-02-17 14:01 ` [PATCH 7/8] iio: accel: msa311: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-17 14:01 ` [PATCH 8/8] iio: accel: " Jonathan Cameron
2025-02-17 22:21 ` [PATCH 0/8] IIO: Accelerometers: Sparse friendly claim of direct mode David Lechner
2025-02-22 12:42   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox