Re: [RFC] docs: add a reset controller chapter to the driver API docs

From: Jonathan Corbet
Date: Tue Oct 22 2019 - 13:00:40 EST


On Tue, 22 Oct 2019 18:45:47 +0200
Philipp Zabel <p.zabel@xxxxxxxxxxxxxx> wrote:

> Add initial reset controller API documentation. This is mostly indented
> 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@xxxxxxxxxxxxxx>

One quick comment...

> Documentation/driver-api/index.rst | 1 +
> Documentation/driver-api/reset.rst | 217 +++++++++++++++++++++++++++++
> 2 files changed, 218 insertions(+)
> create mode 100644 Documentation/driver-api/reset.rst
>

[...]

> +Shared and exclusive resets
> +---------------------------
> +
> +The reset controller API provides either reference counted deassertion and
> +assertion or direct, exclusive control.
> +The distinction between shared and exclusive reset controls is made at the time
> +the reset control is requested, either via :c:func:`devm_reset_control_get_shared`
> +or via :c:func:`devm_reset_control_get_exclusive`.

:c:func: isn't needed anymore, and is actively discouraged - the function
references will be linked anyway. So just say function() rather than
:c:func:`function` everywhere, please.

Thanks,

jon