[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5607a969-2e42-4530-94b2-caca21de11aa@baylibre.com>
Date: Thu, 18 Sep 2025 14:12:22 -0500
From: David Lechner <dlechner@...libre.com>
To: Marcelo Schmitt <marcelo.schmitt@...log.com>, linux-spi@...r.kernel.org,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Axel Haslam <ahaslam@...libre.com>, broonie@...nel.org, jic23@...nel.org,
nuno.sa@...log.com, andy@...nel.org, marcelo.schmitt1@...il.com
Subject: Re: [PATCH v2 1/2] spi: offload: types: add offset parameter
On 9/18/25 12:34 PM, Marcelo Schmitt wrote:
> From: Axel Haslam <ahaslam@...libre.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@...libre.com>
> Signed-off-by: Marcelo Schmitt <marcelo.schmitt@...log.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 {
>
I think this would be a good time to add some documentation comments:
/**
* spi_offload_trigger_periodic - configuration parameters for periodic triggers
* @frequency_hz: The rate that the trigger should fire in Hz.
* @offset_ns: A delay in nanoseconds between when this trigger fires
* compared to another trigger. This requires specialized hardware
* that supports such synchronization with a delay between two or
* more triggers. Set to 0 when not needed.
*/
> struct spi_offload_trigger_periodic {
> u64 frequency_hz;
> + u64 offset_ns;
> };
>
> struct spi_offload_trigger_config {
Powered by blists - more mailing lists