From: David Lechner <dlechner@baylibre.com>
To: Marcelo Schmitt <marcelo.schmitt@analog.com>,
linux-spi@vger.kernel.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Axel Haslam <ahaslam@baylibre.com>,
broonie@kernel.org, jic23@kernel.org, nuno.sa@analog.com,
andy@kernel.org, marcelo.schmitt1@gmail.com
Subject: Re: [PATCH v2 1/2] spi: offload: types: add offset parameter
Date: Thu, 18 Sep 2025 14:12:22 -0500 [thread overview]
Message-ID: <5607a969-2e42-4530-94b2-caca21de11aa@baylibre.com> (raw)
In-Reply-To: <cc049e25c9633f41eeaacc94bed5db2a1aa299d8.1758206554.git.marcelo.schmitt@analog.com>
On 9/18/25 12:34 PM, Marcelo Schmitt 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
> 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 {
>
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 {
next prev parent reply other threads:[~2025-09-18 19:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 17:33 [PATCH v2 0/2] Add SPI offload trigger offset Marcelo Schmitt
2025-09-18 17:34 ` [PATCH v2 1/2] spi: offload: types: add offset parameter Marcelo Schmitt
2025-09-18 19:12 ` David Lechner [this message]
2025-09-18 17:34 ` [PATCH v2 2/2] spi: spi-offload-trigger-pwm: Use duty offset Marcelo Schmitt
2025-09-18 19:19 ` David Lechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5607a969-2e42-4530-94b2-caca21de11aa@baylibre.com \
--to=dlechner@baylibre.com \
--cc=ahaslam@baylibre.com \
--cc=andy@kernel.org \
--cc=broonie@kernel.org \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.com \
--cc=marcelo.schmitt@analog.com \
--cc=nuno.sa@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®