Re: [PATCH 5/9] iio: adc: ad_sigma_delta: use spi_optimize_message()
From: Andy Shevchenko
Date: Mon Jun 23 2025 - 02:58:05 EST
On Fri, Jun 20, 2025 at 05:20:11PM -0500, David Lechner wrote:
> Use spi_optimize_message() to improve the performance of buffered reads.
>
> By setting up the SPI message and pre-optimizing it in the buffer
> postenable callback, we can reduce overhead during each sample read.
>
> A rough estimate shows that this reduced the CPU usage of the interrupt
> handler thread from 22% to 16% using an EVAL-AD4112ARDZ board on a
> DE10-Nano (measuring a single channel at the default 6.2 kHz sample
> rate).
...
> samples_buf_size += sizeof(int64_t);
Missed conversion in the second patch?
I have done search for these as
git grep -n 'u?int[0-9][0-9]?_t' -- $FILE(s)
--
With Best Regards,
Andy Shevchenko