Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp665058pxb; Thu, 19 Nov 2020 10:35:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmqKwtnA6NvL2YHxBE+tY7oYM63o3PhkHyfIzpTwtPhlDISQFxyFJ2u2ADTTZ/huNiptpR X-Received: by 2002:a05:6402:1a33:: with SMTP id be19mr32810872edb.47.1605810956083; Thu, 19 Nov 2020 10:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605810956; cv=none; d=google.com; s=arc-20160816; b=OpVOF9PBJtPkcp8tbjgPHxnGyz3ai3YE222Y4ABVOCK55VL6A+Dr7yJ+SXoq+ndh20 frg9GZsdW2ArxD3Wnm5TWpYMDIVFrjvgKE2favAZSw8CndMFwZgBu+AbMjsx2F2jcOBp 5amUK+5Ykv0LKZNCaEVPdsfx7aMOhblzL26MwjISkyIXGHQcY+K9wQAZQSxssEK6rSyb 7quTbCdJMjzDOoINmD5hvTR3ABAeH7mbT9Otliae9x8FPzGZ6vxwvfvTzPZUhyeZXmzS 4j7K78XxArrwdfemOlkIZo5EQt6o2CbwHDAG+33mGpQWTmMkGPzQ1Yh8DJC6ZiIz55Jf 3B/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3Fwbov0n/MTQM8HXNLsQRtheMQrRru7ITImZeahaocM=; b=qeHNLLiqyqsk3EvxP5FiKH7f0Bf7mR7w2gupBCgI1ttVQ02VQjGdYBL/Km+9aME3Tk BdiUgagcpYbGk306eekfp3RzZuk1DdrAiVuJGm80rFDfhuxxZOUcTw/VdYuq/Gyz48HB SrDuruPGZIY/jdZeR6W+MCch85YwqGRic0BDnM/mObDdPKtdPNrSJxyjJ6EW/S/d8wiM QjK0Y3FWMSDjTECjdHAqVIvO70aCwIU5E7kVT3sUH2S++3L6i4CW1fOYGqHkoKav1zXY 50zA5ShYcDzt8IWJZXsxXud1d2h+UVedOgPLtWDcNK/+DXFdR1qxXzSBpeVrJmFrCSSJ B6pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=gm30n5gi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de7si301143edb.440.2020.11.19.10.35.26; Thu, 19 Nov 2020 10:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=gm30n5gi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729302AbgKSSb6 (ORCPT + 99 others); Thu, 19 Nov 2020 13:31:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbgKSSb5 (ORCPT ); Thu, 19 Nov 2020 13:31:57 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA029C0613CF; Thu, 19 Nov 2020 10:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=3Fwbov0n/MTQM8HXNLsQRtheMQrRru7ITImZeahaocM=; b=gm30n5gi+X6YNW+bkT1R9GCzef jKNYBLUUTEIfDIs0dElmSSo98C8sE50LbXtmsDWGVOdXuW4tzPOnaG7rH7Av2xhEinvwiNCw52RFp YAHuxpWP8oE5oDuKIT2YDbMG4jbnLH7EEFJevy38L2EAVkr7gnc57+9v9eXdTmb2wDGq7UklLVlN5 qFFfuAxxBnJlNrzbWdjxyc/4Dmk/9NDQNPXK9Eeqt78PCRvEqKOJOW/PMfMcJVnrv7RvLWSKtgJdi oM7uWQRr3PrLGzgxPiZ2rJDEfHtmHCOerZ5xYKWBWoWA40O8xaBZSp9xVVNEaFwhrkhwcbFr8VAsV E1tSqiJg==; Received: from [2601:1c0:6280:3f0::bcc4] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfoie-0008WP-KL; Thu, 19 Nov 2020 18:31:44 +0000 Subject: Re: [PATCH] docs: add a reset controller chapter to the driver API docs To: Philipp Zabel , linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jonathan Corbet , Vivek Gautam , Masahiro Yamada , Bartosz Golaszewski , Hans de Goede , Martin Blumenstingl , Ramiro Oliveira , Dinh Nguyen , Thierry Reding , Geert Uytterhoeven , Lee Jones , Amjad Ouled-Ameur , kernel@pengutronix.de References: <20201117103306.17010-1-p.zabel@pengutronix.de> From: Randy Dunlap Message-ID: <48b0c216-69de-5c3b-1d2d-9cb23e0bc8bf@infradead.org> Date: Thu, 19 Nov 2020 10:31:37 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201117103306.17010-1-p.zabel@pengutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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 thanks. -- ~Randy