Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: ti-ads1298 & Kconfig
@ 2025-04-23 18:46 Arthur-Prince
  2025-04-23 18:46 ` [PATCH 1/2] iio: adc: ti-ads1298: Add safe usage guarantee for device communication Arthur-Prince
  2025-04-23 18:46 ` [PATCH 2/2] iio: adc: Kconfig: add kfifo dependency to fix module build Arthur-Prince
  0 siblings, 2 replies; 5+ messages in thread
From: Arthur-Prince @ 2025-04-23 18:46 UTC (permalink / raw)
  To: linux-iio, arthur.prince

These patches improve the ti-ads1298 driver in two ways:

1- Safe usage guarantee for device communication
  Wrap calls to ads1298_reg_access() and ads1298_write_raw()
  with iio_device_claim_direct() / iio_device_release_direct()
  so that configuration operations cannot interrupt an ongoing
  buffered capture.

2- Add kfifo dependency for module compilation 
  The driver now selects CONFIG_IIO_KFIFO_BUFFER in its Kconfig,
  just like other IIO ADC drivers, to ensure the kfifo buffer
  API is available when building ti-ads1298 as a module.

Arthur-Prince (2):
  iio: adc: ti-ads1298
  iio: adc: Kconfig

 drivers/iio/adc/Kconfig      |  1 +
 drivers/iio/adc/ti-ads1298.c | 25 +++++++++++++++++++++----
 2 files changed, 22 insertions(+), 4 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2025-04-26 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 18:46 [PATCH 0/2] iio: adc: ti-ads1298 & Kconfig Arthur-Prince
2025-04-23 18:46 ` [PATCH 1/2] iio: adc: ti-ads1298: Add safe usage guarantee for device communication Arthur-Prince
2025-04-26 15:30   ` Jonathan Cameron
2025-04-23 18:46 ` [PATCH 2/2] iio: adc: Kconfig: add kfifo dependency to fix module build Arthur-Prince
2025-04-26 15:32   ` Jonathan Cameron

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