Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 00/29] IIO: ADCs: Sparse friendly claim of direct mode
@ 2025-02-17 14:16 Jonathan Cameron
  2025-02-17 14:16 ` [PATCH 01/29] iio: adc: vf610: Move claim of direct mode to caller of vf610_read_sample and use guard(mutex) Jonathan Cameron
                   ` (29 more replies)
  0 siblings, 30 replies; 55+ messages in thread
From: Jonathan Cameron @ 2025-02-17 14:16 UTC (permalink / raw)
  To: linux-iio
  Cc: David Lechner, Nuno Sá, Olivier Moysan, Mike Looijmans,
	Phil Reid, Marek Vasut, Miquel Raynal, Claudiu Beznea,
	Uwe Kleine-König, Alisa-Dariana Roman, Marek Vasut, Frank Li,
	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! 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 (29):
  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: stm32-dfsdm: Factor out core of reading INFO_RAW
  iio: adc: stm32-dfsdm: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad4030: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad7192: Factor out core of ad7192_write_raw() to simplify
    error handling.
  iio: adc: ad7192: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad7768-1: Move setting of val a bit later to avoid
    unnecessary return value check
  iio: adc: ad7768-1: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad7606: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad7791: Factor out core of ad7791_write_raw() to simplify
    error handling
  iio: adc: ad7791: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad7793: Factor out core of ad7793_write_raw() to simplify
    error handling
  iio: adc: ad7793: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad799x: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: ad_sigma_delta: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: at91-sama5d2: Move claim of direct mode up a level and use
    guard()
  iio: adc: at91-sama5d2: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: max1027: Move claim of direct mode up one level and use
    guard()
  iio: adc: max1027: Switch to sparse friendly
    iio_device_claim/release_direct()
  iio: adc: max11410: Factor out writing of sampling frequency to
    simplify errro paths.
  iio: adc: max11410: 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()
  iio: adc: Switch to sparse friendly iio_device_claim/release_direct()

 drivers/iio/adc/ad4030.c           |  21 ++--
 drivers/iio/adc/ad7173.c           |   9 +-
 drivers/iio/adc/ad7192.c           | 119 ++++++++++----------
 drivers/iio/adc/ad7266.c           |   7 +-
 drivers/iio/adc/ad7298.c           |   7 +-
 drivers/iio/adc/ad7380.c           |  56 +++++-----
 drivers/iio/adc/ad7476.c           |   7 +-
 drivers/iio/adc/ad7606.c           |  14 ++-
 drivers/iio/adc/ad7768-1.c         |  10 +-
 drivers/iio/adc/ad7791.c           |  31 +++---
 drivers/iio/adc/ad7793.c           |  80 +++++++-------
 drivers/iio/adc/ad7887.c           |   7 +-
 drivers/iio/adc/ad7923.c           |   7 +-
 drivers/iio/adc/ad7944.c           |   7 +-
 drivers/iio/adc/ad799x.c           |  14 ++-
 drivers/iio/adc/ad_sigma_delta.c   |   7 +-
 drivers/iio/adc/at91-sama5d2_adc.c |  54 +++++-----
 drivers/iio/adc/dln2-adc.c         |   7 +-
 drivers/iio/adc/max1027.c          |  37 +++----
 drivers/iio/adc/max11410.c         |  72 ++++++-------
 drivers/iio/adc/mxs-lradc-adc.c    |  14 ++-
 drivers/iio/adc/rcar-gyroadc.c     |   9 +-
 drivers/iio/adc/stm32-adc.c        |   7 +-
 drivers/iio/adc/stm32-dfsdm-adc.c  |  76 +++++++------
 drivers/iio/adc/ti-adc084s021.c    |   9 +-
 drivers/iio/adc/ti-adc108s102.c    |   7 +-
 drivers/iio/adc/ti-ads1015.c       | 168 ++++++++++++-----------------
 drivers/iio/adc/ti-ads1100.c       |  44 +++-----
 drivers/iio/adc/ti-ads1298.c       |   7 +-
 drivers/iio/adc/ti-ads131e08.c     |  14 ++-
 drivers/iio/adc/ti-tlc4541.c       |   7 +-
 drivers/iio/adc/vf610_adc.c        |  36 +++----
 32 files changed, 440 insertions(+), 531 deletions(-)

-- 
2.48.1


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

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

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-17 14:16 [PATCH 00/29] IIO: ADCs: Sparse friendly claim of direct mode Jonathan Cameron
2025-02-17 14:16 ` [PATCH 01/29] iio: adc: vf610: Move claim of direct mode to caller of vf610_read_sample and use guard(mutex) Jonathan Cameron
2025-02-17 14:16 ` [PATCH 02/29] iio: adc: vf610: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-17 14:16 ` [PATCH 03/29] iio: adc: ti-ads1100: Use guard(mutex) to allow direct returns Jonathan Cameron
2025-02-17 14:16 ` [PATCH 04/29] iio: adc: ti-ads1100: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-17 14:16 ` [PATCH 05/29] iio: adc: ti-ads1015: Use guard(mutex) and factor out code for INFO_RAW Jonathan Cameron
2025-02-17 14:16 ` [PATCH 06/29] iio: adc: ti-ads1015: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-17 14:16 ` [PATCH 07/29] iio: adc: stm32-dfsdm: Factor out core of reading INFO_RAW Jonathan Cameron
2025-02-18 15:32   ` Olivier MOYSAN
2025-02-17 14:16 ` [PATCH 08/29] iio: adc: stm32-dfsdm: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-18 15:34   ` Olivier MOYSAN
2025-02-17 14:16 ` [PATCH 09/29] iio: adc: ad4030: " Jonathan Cameron
2025-02-19 10:54   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 10/29] iio: adc: ad7192: Factor out core of ad7192_write_raw() to simplify error handling Jonathan Cameron
2025-02-19 10:54   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 11/29] iio: adc: ad7192: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-19 10:55   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 12/29] iio: adc: ad7768-1: Move setting of val a bit later to avoid unnecessary return value check Jonathan Cameron
2025-02-19 10:56   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 13/29] iio: adc: ad7768-1: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-19 10:56   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 14/29] iio: adc: ad7606: " Jonathan Cameron
2025-02-19 10:57   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 15/29] iio: adc: ad7791: Factor out core of ad7791_write_raw() to simplify error handling Jonathan Cameron
2025-02-19 10:59   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 16/29] iio: adc: ad7791: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-19 11:00   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 17/29] iio: adc: ad7793: Factor out core of ad7793_write_raw() to simplify error handling Jonathan Cameron
2025-02-19 11:00   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 18/29] iio: adc: ad7793: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-19 11:01   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 19/29] iio: adc: ad799x: " Jonathan Cameron
2025-02-19 11:02   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 20/29] iio: adc: ad_sigma_delta: " Jonathan Cameron
2025-02-19 11:03   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 21/29] iio: adc: at91-sama5d2: Move claim of direct mode up a level and use guard() Jonathan Cameron
2025-02-19 12:45   ` Claudiu Beznea
2025-02-17 14:16 ` [PATCH 22/29] iio: adc: at91-sama5d2: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-19 12:46   ` Claudiu Beznea
2025-02-17 14:16 ` [PATCH 23/29] iio: adc: max1027: Move claim of direct mode up one level and use guard() Jonathan Cameron
2025-02-17 15:38   ` Miquel Raynal
2025-02-22 13:04   ` Jonathan Cameron
2025-02-17 14:16 ` [PATCH 24/29] iio: adc: max1027: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-17 15:40   ` Miquel Raynal
2025-02-22 13:06     ` Jonathan Cameron
2025-02-17 14:16 ` [PATCH 25/29] iio: adc: max11410: Factor out writing of sampling frequency to simplify errro paths Jonathan Cameron
2025-02-19 11:03   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 26/29] iio: adc: max11410: Switch to sparse friendly iio_device_claim/release_direct() Jonathan Cameron
2025-02-19 11:04   ` Nuno Sá
2025-02-17 14:16 ` [PATCH 27/29] iio: adc: mxs-lradc: " Jonathan Cameron
2025-02-17 14:16 ` [PATCH 28/29] iio: adc: rcar: " Jonathan Cameron
2025-02-17 14:16 ` [PATCH 29/29] iio: adc: " Jonathan Cameron
2025-02-19 11:07   ` Nuno Sá
2025-02-20 12:47   ` Mike Looijmans
2025-02-22 13:09 ` [PATCH 00/29] IIO: ADCs: Sparse friendly claim of direct mode Jonathan Cameron

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