mbox series

[v2,0/8] IIO: ADCs: Sparse friendly claim of direct mode

Message ID 20250309165819.1346684-1-jic23@kernel.org (mailing list archive)
Headers show
Series IIO: ADCs: Sparse friendly claim of direct mode | expand

Message

Jonathan Cameron March 9, 2025, 4:58 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Resend of remaining unreviewed updates in drivers/iio/adc/*

I will eventually just apply these, but I'd much rather someone
else took a quick look to check I haven't done anything stupid!

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! It is a large series so feel free to review
any you have time to look at rather than feeling you need to look
at the whole thing!

This is effectively part 3 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 ADC drivers.

Jonathan Cameron (8):
  iio: adc: vf610: Move claim of direct mode to caller of
    vf610_read_sample and use guard(mutex)
  iio: adc: vf610: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ti-ads1100: Use guard(mutex) to allow direct returns
  iio: adc: ti-ads1100: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ti-ads1015: Use guard(mutex) and factor out code for
    INFO_RAW
  iio: adc: ti-ads1015: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: mxs-lradc: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: rcar: Switch to sparse friendly
    iio_device_claim/release_direct()

 drivers/iio/adc/mxs-lradc-adc.c |  14 ++-
 drivers/iio/adc/rcar-gyroadc.c  |   9 +-
 drivers/iio/adc/ti-ads1015.c    | 168 +++++++++++++-------------------
 drivers/iio/adc/ti-ads1100.c    |  44 +++------
 drivers/iio/adc/vf610_adc.c     |  36 +++----
 5 files changed, 105 insertions(+), 166 deletions(-)

Comments

David Lechner March 10, 2025, 11:21 p.m. UTC | #1
On 3/9/25 11:58 AM, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> Resend of remaining unreviewed updates in drivers/iio/adc/*
> 
> I will eventually just apply these, but I'd much rather someone
> else took a quick look to check I haven't done anything stupid!
> 
Only managed to find one little potential oversight in patch 5/8.

Reviewed-by: David Lechner <dlechner@baylibre.com>