From: Jonathan Corbet <corbet@lwn.net>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Subject: Re: [PATCH] Documentation: add a driver API doc for the power sequencing subsystem
Date: Tue, 20 Aug 2024 12:20:24 -0600 [thread overview]
Message-ID: <87cym3f447.fsf@trenco.lwn.net> (raw)
In-Reply-To: <20240820153855.75412-1-brgl@bgdev.pl>
Bartosz Golaszewski <brgl@bgdev.pl> writes:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> Describe what the subsystem does, how the consumers and providers work
> and add API reference generated from kerneldocs.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
> Documentation/driver-api/index.rst | 1 +
> Documentation/driver-api/pwrseq.rst | 98 +++++++++++++++++++++++++++++
> MAINTAINERS | 1 +
> 3 files changed, 100 insertions(+)
> create mode 100644 Documentation/driver-api/pwrseq.rst
Thanks for this ... just one quick nit...
> +The consumer API is aimed to be as simple as possible. The driver interested in
> +getting a descriptor from the power sequencer should call :c:func:`pwrseq_get()`
> +and specify the name of the target it wants to reach in the sequence after
> +calling :c:func:`pwrseq_power_up()`. The descriptor can be released by calling
> +:c:func:`pwrseq_put()` and the consumer can request the powering down of its
> +target with :c:func:`pwrseq_power_off()`. Note that there is no guarantee that
> +:c:func:`pwrseq_power_off()` will have any effect as there may be multiple users
> +of the underlying resources who may keep them active.
There is no need to use :c:func: here; just say function() and the Right
Things will just magically happen.
Thanks,
jon
next prev parent reply other threads:[~2024-08-20 18:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 15:38 [PATCH] Documentation: add a driver API doc for the power sequencing subsystem Bartosz Golaszewski
2024-08-20 18:20 ` Jonathan Corbet [this message]
2024-08-20 18:53 ` Bartosz Golaszewski
2024-08-20 19:36 ` Jonathan Corbet
2024-08-21 10:09 ` Bartosz Golaszewski
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=87cym3f447.fsf@trenco.lwn.net \
--to=corbet@lwn.net \
--cc=bartosz.golaszewski@linaro.org \
--cc=brgl@bgdev.pl \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).