All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Philipp Zabel <p.zabel@pengutronix.de>, linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
	Vivek Gautam <vivek.gautam@codeaurora.org>,
	Masahiro Yamada <yamada.masahiro@socionext.com>,
	Bartosz Golaszewski <bgolaszewski@baylibre.com>,
	Hans de Goede <hdegoede@redhat.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Ramiro Oliveira <Ramiro.Oliveira@synopsys.com>,
	Dinh Nguyen <dinguyen@kernel.org>,
	Thierry Reding <treding@nvidia.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Lee Jones <lee.jones@linaro.org>,
	Amjad Ouled-Ameur <aouledameur@baylibre.com>,
	kernel@pengutronix.de
Subject: Re: [PATCH] docs: add a reset controller chapter to the driver API docs
Date: Thu, 19 Nov 2020 10:31:37 -0800	[thread overview]
Message-ID: <48b0c216-69de-5c3b-1d2d-9cb23e0bc8bf@infradead.org> (raw)
In-Reply-To: <20201117103306.17010-1-p.zabel@pengutronix.de>

Hi,

On 11/17/20 2:33 AM, Philipp Zabel wrote:
> Add initial reset controller API documentation. This is mostly intended
> to describe the concepts to users of the consumer API, and to tie the
> kerneldoc comments we already have into the driver API documentation.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
> Changes since the RFC [1]:
> - Replaced all :c:func:`function` with function() (Jonathan Corbet)
> - Typo fixes and wording improvements (Randy Dunlap)
> - Mention new reset_control_rearm() API as a counterpart to
>   reset_control_reset() for shared resets in the Triggering section
> - Grammar fix in the Querying section
> - Add reset.rst to MAINTAINERS
> 
> [1] https://lore.kernel.org/lkml/20191022164547.22632-1-p.zabel@pengutronix.de/
> ---
>  Documentation/driver-api/index.rst |   1 +
>  Documentation/driver-api/reset.rst | 219 +++++++++++++++++++++++++++++
>  MAINTAINERS                        |   1 +
>  3 files changed, 221 insertions(+)
>  create mode 100644 Documentation/driver-api/reset.rst


> diff --git a/Documentation/driver-api/reset.rst b/Documentation/driver-api/reset.rst
> new file mode 100644
> index 000000000000..00a6ad79dd6c
> --- /dev/null
> +++ b/Documentation/driver-api/reset.rst
> @@ -0,0 +1,219 @@


> +Querying
> +--------
> +
> +Only some reset controllers support querying the current status of a reset
> +line, via reset_control_status().
> +This function returns a positive non-zero value if the given reset line is
> +asserted.

Maybe note that reset_control_status() does not accept a reset control array
as its input parameter.

> +
> +Reset control arrays
> +--------------------
> +
> +Some drivers need to assert a bunch of reset lines in no particular order.
> +devm_reset_control_array_get() returns an opaque reset control handle that can
> +be used to assert, deassert, or trigger all specified reset controls at once.
> +The reset control API does not guarantee the order in which the individual
> +controls therein are handled.


Reviewed-by: Randy Dunlap <rdunlap@infradead.org>

thanks.
-- 
~Randy


  reply	other threads:[~2020-11-19 18:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-17 10:33 [PATCH] docs: add a reset controller chapter to the driver API docs Philipp Zabel
2020-11-19 18:31 ` Randy Dunlap [this message]
2020-11-19 21:23 ` Amjad Ouled-Ameur

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=48b0c216-69de-5c3b-1d2d-9cb23e0bc8bf@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=Ramiro.Oliveira@synopsys.com \
    --cc=aouledameur@baylibre.com \
    --cc=bgolaszewski@baylibre.com \
    --cc=corbet@lwn.net \
    --cc=dinguyen@kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=hdegoede@redhat.com \
    --cc=kernel@pengutronix.de \
    --cc=lee.jones@linaro.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=p.zabel@pengutronix.de \
    --cc=treding@nvidia.com \
    --cc=vivek.gautam@codeaurora.org \
    --cc=yamada.masahiro@socionext.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.