* [PATCH] iio: accel: adxl313: add missing buffer selections in Kconfig
@ 2026-10-07 0:08 Alexis Bouzigues via B4 Relay
2026-10-08 7:41 ` Joshua Crofts
2026-10-12 14:30 ` Nuno Sá
0 siblings, 2 replies; 3+ messages in thread
From: Alexis Bouzigues via B4 Relay @ 2026-10-07 0:08 UTC (permalink / raw)
To: Jonathan Cameron, Lucas Stankus, Nuno Sá, Michael Hennerich
Cc: David Lechner, Andy Shevchenko, Lothar Rubusch, linux, linux-iio,
linux-kernel, stable, Alexis Bouzigues
From: Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
The FIFO support added to the ADXL313 core uses
devm_iio_kfifo_buffer_setup() and iio_push_to_buffers(), but its Kconfig
entry does not select the required buffer support. Enabling either
frontend without IIO_BUFFER or IIO_KFIFO_BUF causes undefined references
to devm_iio_kfifo_buffer_setup_ext() and iio_push_to_buffers().
Select IIO_BUFFER and IIO_KFIFO_BUF from the shared ADXL313 core symbol
so both the I2C and SPI frontends have the required dependencies.
Fixes: ff8093fa6ba4 ("iio: accel: adxl313: add buffered FIFO watermark with interrupt handling")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
---
Add the buffer selections required by the ADXL313 FIFO support.
The shared core symbol covers both I2C and SPI frontends.
---
drivers/iio/accel/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index 4094299e2ed8..7b5c1ce66e95 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -32,6 +32,8 @@ config ADIS16209
config ADXL313
tristate
+ select IIO_BUFFER
+ select IIO_KFIFO_BUF
config ADXL313_I2C
tristate "Analog Devices ADXL313 3-Axis Digital Accelerometer I2C Driver"
---
base-commit: 69f80fef3153299d9c72c53d1d71eef6354b6926
change-id: 20261006-fix-adxl313-buffer-deps-review-73bb575e1e39
Best regards,
--
Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: accel: adxl313: add missing buffer selections in Kconfig
2026-10-07 0:08 [PATCH] iio: accel: adxl313: add missing buffer selections in Kconfig Alexis Bouzigues via B4 Relay
@ 2026-10-08 7:41 ` Joshua Crofts
2026-10-12 14:30 ` Nuno Sá
1 sibling, 0 replies; 3+ messages in thread
From: Joshua Crofts @ 2026-10-08 7:41 UTC (permalink / raw)
To: Alexis Bouzigues via B4 Relay
Cc: BouziguesAlexis, Jonathan Cameron, Lucas Stankus, Nuno Sá,
Michael Hennerich, David Lechner, Andy Shevchenko, Lothar Rubusch,
linux, linux-iio, linux-kernel, stable
On Tue, 06 Oct 2026 19:08:58 -0500
Alexis Bouzigues via B4 Relay <devnull+BouziguesAlexis.JohnDeere.com@kernel.org> wrote:
> From: Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
>
> The FIFO support added to the ADXL313 core uses
> devm_iio_kfifo_buffer_setup() and iio_push_to_buffers(), but its Kconfig
> entry does not select the required buffer support. Enabling either
> frontend without IIO_BUFFER or IIO_KFIFO_BUF causes undefined references
> to devm_iio_kfifo_buffer_setup_ext() and iio_push_to_buffers().
>
> Select IIO_BUFFER and IIO_KFIFO_BUF from the shared ADXL313 core symbol
> so both the I2C and SPI frontends have the required dependencies.
>
> Fixes: ff8093fa6ba4 ("iio: accel: adxl313: add buffered FIFO watermark with interrupt handling")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Signed-off-by: Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
> ---
Tested-by: Joshua Crofts <joshua.crofts1@gmail.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
If you're doing the same change for multiple drivers, please send it
as a series, it will make reviewing easier.
--
Kind regards,
Joshua Crofts
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: accel: adxl313: add missing buffer selections in Kconfig
2026-10-07 0:08 [PATCH] iio: accel: adxl313: add missing buffer selections in Kconfig Alexis Bouzigues via B4 Relay
2026-10-08 7:41 ` Joshua Crofts
@ 2026-10-12 14:30 ` Nuno Sá
1 sibling, 0 replies; 3+ messages in thread
From: Nuno Sá @ 2026-10-12 14:30 UTC (permalink / raw)
To: BouziguesAlexis
Cc: Jonathan Cameron, Lucas Stankus, Michael Hennerich, David Lechner,
Andy Shevchenko, Lothar Rubusch, linux, linux-iio, linux-kernel,
stable
On Tue, Oct 06, 2026 at 07:08:58PM -0500, Alexis Bouzigues via B4 Relay wrote:
> From: Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
>
> The FIFO support added to the ADXL313 core uses
> devm_iio_kfifo_buffer_setup() and iio_push_to_buffers(), but its Kconfig
> entry does not select the required buffer support. Enabling either
> frontend without IIO_BUFFER or IIO_KFIFO_BUF causes undefined references
> to devm_iio_kfifo_buffer_setup_ext() and iio_push_to_buffers().
>
> Select IIO_BUFFER and IIO_KFIFO_BUF from the shared ADXL313 core symbol
> so both the I2C and SPI frontends have the required dependencies.
>
> Fixes: ff8093fa6ba4 ("iio: accel: adxl313: add buffered FIFO watermark with interrupt handling")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Signed-off-by: Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
> ---
> Add the buffer selections required by the ADXL313 FIFO support.
> The shared core symbol covers both I2C and SPI frontends.
> ---
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
> drivers/iio/accel/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
> index 4094299e2ed8..7b5c1ce66e95 100644
> --- a/drivers/iio/accel/Kconfig
> +++ b/drivers/iio/accel/Kconfig
> @@ -32,6 +32,8 @@ config ADIS16209
>
> config ADXL313
> tristate
> + select IIO_BUFFER
> + select IIO_KFIFO_BUF
>
> config ADXL313_I2C
> tristate "Analog Devices ADXL313 3-Axis Digital Accelerometer I2C Driver"
>
> ---
> base-commit: 69f80fef3153299d9c72c53d1d71eef6354b6926
> change-id: 20261006-fix-adxl313-buffer-deps-review-73bb575e1e39
>
> Best regards,
> --
> Alexis Bouzigues <BouziguesAlexis@JohnDeere.com>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-12 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 0:08 [PATCH] iio: accel: adxl313: add missing buffer selections in Kconfig Alexis Bouzigues via B4 Relay
2026-10-08 7:41 ` Joshua Crofts
2026-10-12 14:30 ` Nuno Sá
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox