[PATCH 05/15] spi: offload: types: add offset parameter

Marcelo Schmitt posted 15 patches 1 month ago
There is a newer version of this series
[PATCH 05/15] spi: offload: types: add offset parameter
Posted by Marcelo Schmitt 1 month ago
From: Axel Haslam <ahaslam@baylibre.com>

Add an offset parameter that can be passed in the periodic trigger.
This is useful for example when adc drivers implement a separate periodic
signal to trigger conversion and need offload to read the result with
some delay.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
---
 include/linux/spi/offload/types.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/spi/offload/types.h b/include/linux/spi/offload/types.h
index 6f7892347871..0170fd1f42e5 100644
--- a/include/linux/spi/offload/types.h
+++ b/include/linux/spi/offload/types.h
@@ -59,6 +59,7 @@ enum spi_offload_trigger_type {
 
 struct spi_offload_trigger_periodic {
 	u64 frequency_hz;
+	u64 offset_ns;
 };
 
 struct spi_offload_trigger_config {
-- 
2.39.2
Re: [PATCH 05/15] spi: offload: types: add offset parameter
Posted by Andy Shevchenko 1 month ago
On Sat, Aug 30, 2025 at 3:42 AM Marcelo Schmitt
<marcelo.schmitt@analog.com> wrote:
>
> From: Axel Haslam <ahaslam@baylibre.com>
>
> Add an offset parameter that can be passed in the periodic trigger.
> This is useful for example when adc drivers implement a separate periodic

ADC

> signal to trigger conversion and need offload to read the result with
> some delay.

-- 
With Best Regards,
Andy Shevchenko