From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 711B7CA9EA0 for ; Tue, 22 Oct 2019 17:00:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F20D214B2 for ; Tue, 22 Oct 2019 17:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732683AbfJVRAi (ORCPT ); Tue, 22 Oct 2019 13:00:38 -0400 Received: from ms.lwn.net ([45.79.88.28]:47660 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730363AbfJVRAi (ORCPT ); Tue, 22 Oct 2019 13:00:38 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 8268037B; Tue, 22 Oct 2019 17:00:37 +0000 (UTC) Date: Tue, 22 Oct 2019 11:00:36 -0600 From: Jonathan Corbet To: Philipp Zabel Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Vivek Gautam , Masahiro Yamada , Bartosz Golaszewski , Hans de Goede , Martin Blumenstingl , Ramiro Oliveira , Dinh Nguyen , Thierry Reding , Geert Uytterhoeven , Lee Jones , kernel@pengutronix.de Subject: Re: [RFC] docs: add a reset controller chapter to the driver API docs Message-ID: <20191022110036.5c2edc05@lwn.net> In-Reply-To: <20191022164547.22632-1-p.zabel@pengutronix.de> References: <20191022164547.22632-1-p.zabel@pengutronix.de> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Oct 2019 18:45:47 +0200 Philipp Zabel 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 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