* [PATCH] iio: adc: ti-ads112c14: select triggered buffer support
@ 2026-11-30 12:37 Pengpeng Hou
2026-11-30 15:23 ` Joshua Crofts
2026-12-05 1:10 ` Jonathan Cameron
0 siblings, 2 replies; 3+ messages in thread
From: Pengpeng Hou @ 2026-11-30 12:37 UTC (permalink / raw)
To: jic23; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel, hppiscas
The ADS112C14 buffered-read path uses the IIO triggered-buffer
helpers. Continuous mode also registers and polls an IIO trigger.
TI_ADS112C14 does not select either buffer support or the
triggered-buffer provider, so configurations without another IIO
driver enabling them cannot build the driver.
Select IIO_BUFFER and IIO_TRIGGERED_BUFFER. The latter also selects
the trigger and kfifo support used by these paths.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 31640de34d5a ("iio: adc: ti-ads112c14: add support for buffered read")
Fixes: 3e274d73aada ("iio: adc: ti-ads112c14: add continuous mode support")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/iio/adc/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index a802d8e..29db3da 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -1881,6 +1881,8 @@ config TI_ADS112C14
depends on I2C
select CRC8
select REGMAP
+ select IIO_BUFFER
+ select IIO_TRIGGERED_BUFFER
help
If you say yes here you get support for Texas Instruments ADS112C14,
ADS122C14 ADC chips.
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] iio: adc: ti-ads112c14: select triggered buffer support
2026-11-30 12:37 [PATCH] iio: adc: ti-ads112c14: select triggered buffer support Pengpeng Hou
@ 2026-11-30 15:23 ` Joshua Crofts
2026-12-05 1:10 ` Jonathan Cameron
1 sibling, 0 replies; 3+ messages in thread
From: Joshua Crofts @ 2026-11-30 15:23 UTC (permalink / raw)
To: Pengpeng Hou, jic23; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel
On 30-Nov-26 13:37, Pengpeng Hou wrote:
> The ADS112C14 buffered-read path uses the IIO triggered-buffer
> helpers. Continuous mode also registers and polls an IIO trigger.
> TI_ADS112C14 does not select either buffer support or the
> triggered-buffer provider, so configurations without another IIO
> driver enabling them cannot build the driver.
>
> Select IIO_BUFFER and IIO_TRIGGERED_BUFFER. The latter also selects
> the trigger and kfifo support used by these paths.
>
> The issue was found by our static-analysis tool and manually reviewed.
>
> Fixes: 31640de34d5a ("iio: adc: ti-ads112c14: add support for buffered read")
> Fixes: 3e274d73aada ("iio: adc: ti-ads112c14: add continuous mode support")
> Signed-off-by: Pengpeng Hou <hppiscas@163.com>
> ---
Tested-by: Joshua Crofts <crofts@kernel.org>
Reviewed-by: Joshua Crofts <crofts@kernel.org>
--
Kind regards,
Joshua Crofts
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] iio: adc: ti-ads112c14: select triggered buffer support
2026-11-30 12:37 [PATCH] iio: adc: ti-ads112c14: select triggered buffer support Pengpeng Hou
2026-11-30 15:23 ` Joshua Crofts
@ 2026-12-05 1:10 ` Jonathan Cameron
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2026-12-05 1:10 UTC (permalink / raw)
To: Pengpeng Hou; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel
On Mon, 30 Nov 2026 20:37:54 +0800
Pengpeng Hou <hppiscas@163.com> wrote:
> The ADS112C14 buffered-read path uses the IIO triggered-buffer
> helpers. Continuous mode also registers and polls an IIO trigger.
> TI_ADS112C14 does not select either buffer support or the
> triggered-buffer provider, so configurations without another IIO
> driver enabling them cannot build the driver.
>
> Select IIO_BUFFER and IIO_TRIGGERED_BUFFER. The latter also selects
> the trigger and kfifo support used by these paths.
>
> The issue was found by our static-analysis tool and manually reviewed.
>
> Fixes: 31640de34d5a ("iio: adc: ti-ads112c14: add support for buffered read")
> Fixes: 3e274d73aada ("iio: adc: ti-ads112c14: add continuous mode support")
A bit of fuzz on this one due to passing with some new support.
I'm not rushing these in so applied to the testing branch of iio.git
ready for the next merge window.
thanks,
Jonathan
> Signed-off-by: Pengpeng Hou <hppiscas@163.com>
> ---
> AI assistance: gpt 5 (patch preparation and review).
>
> drivers/iio/adc/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> index a802d8e..29db3da 100644
> --- a/drivers/iio/adc/Kconfig
> +++ b/drivers/iio/adc/Kconfig
> @@ -1881,6 +1881,8 @@ config TI_ADS112C14
> depends on I2C
> select CRC8
> select REGMAP
> + select IIO_BUFFER
> + select IIO_TRIGGERED_BUFFER
> help
> If you say yes here you get support for Texas Instruments ADS112C14,
> ADS122C14 ADC chips.
>
> base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-05 1:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 12:37 [PATCH] iio: adc: ti-ads112c14: select triggered buffer support Pengpeng Hou
2026-11-30 15:23 ` Joshua Crofts
2026-12-05 1:10 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®