[PATCH v2 0/2] accel: adxl380: Improve data reading from FIFO

Francesco Lavra posted 2 patches 2 weeks, 5 days ago
drivers/iio/accel/adxl380.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
[PATCH v2 0/2] accel: adxl380: Improve data reading from FIFO
Posted by Francesco Lavra 2 weeks, 5 days ago
Patch 1 fixes a bug that might cause the adxl380 interrupt handler
to read from the sensor FIFO more entries than actually present.
Patch 2 optimizes transfer of FIFO data by minimizing transport protocol
overhead.

Changes from v1 [1]:
- replaced 2 with sizeof(*st->fifo_buf) in adxl380_irq_handler (Jonathan)

[1] https://lore.kernel.org/linux-iio/20260106193627.3989930-1-flavra@baylibre.com/T/

Francesco Lavra (2):
  iio: accel: adxl380: Avoid reading more entries than present in FIFO
  iio: accel: adxl380: Optimize reading of FIFO entries in interrupt
    handler

 drivers/iio/accel/adxl380.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

-- 
2.39.5
Re: [PATCH v2 0/2] accel: adxl380: Improve data reading from FIFO
Posted by Jonathan Cameron 2 weeks, 1 day ago
On Mon, 19 Jan 2026 11:23:15 +0100
Francesco Lavra <flavra@baylibre.com> wrote:

> Patch 1 fixes a bug that might cause the adxl380 interrupt handler
> to read from the sensor FIFO more entries than actually present.
> Patch 2 optimizes transfer of FIFO data by minimizing transport protocol
> overhead.
> 
> Changes from v1 [1]:
> - replaced 2 with sizeof(*st->fifo_buf) in adxl380_irq_handler (Jonathan)
> 
> [1] https://lore.kernel.org/linux-iio/20260106193627.3989930-1-flavra@baylibre.com/T/
Series applied.

Given timing I've queued it up on the testing (soon to be togreg) branch of iio.git
but marked the first patch for stable so that it'll get backported after the merge
window.

Thanks,

Jonathan

> 
> Francesco Lavra (2):
>   iio: accel: adxl380: Avoid reading more entries than present in FIFO
>   iio: accel: adxl380: Optimize reading of FIFO entries in interrupt
>     handler
> 
>  drivers/iio/accel/adxl380.c | 13 ++++++-------
>  1 file changed, 6 insertions(+), 7 deletions(-)
>