From patchwork Mon Jan 30 10:51:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9544799 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C6B7604A8 for ; Mon, 30 Jan 2017 10:51:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C6661FF60 for ; Mon, 30 Jan 2017 10:51:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 017B726E75; Mon, 30 Jan 2017 10:51:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F0051FF60 for ; Mon, 30 Jan 2017 10:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752769AbdA3Kvj (ORCPT ); Mon, 30 Jan 2017 05:51:39 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:36766 "EHLO mail-wj0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752504AbdA3Kvi (ORCPT ); Mon, 30 Jan 2017 05:51:38 -0500 Received: by mail-wj0-f195.google.com with SMTP id kq3so7221102wjc.3; Mon, 30 Jan 2017 02:51:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9Dm/LEUrpBq4n6kv6hi1Fq/Q7rMJgfVEYl2s47OE8c4=; b=YQF/njSZLynHF5ZxibWkoCWbtFDMcT9STvEjyPRL+Fj7DP1iy87bR1JPvOy5amhvN1 bUPmq7Ej2QX748a50DTUaKNcca11pi88qE881JyeAYi5WXag0+6fCWOQP5+cwfMT2oFq rz3yIgF6950EQ7liCF2RL05uqWJbF+PHm6PcnDKsdR8ej9eF+VH2q69Lf07V7y1uNvM1 KTlHRU96AZWmTz3iuo+Jzx7urbWJY+VOl39ZP6vnm0uNkzGAe09pU5JJfQ04v0NmaMb1 PF5pnAcHXdaB1BUvDFvOI3GeAyJAc5Ad8VAEfPkpMYwtlSM8wBecdsNvO0+tltcmpxNe TZGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9Dm/LEUrpBq4n6kv6hi1Fq/Q7rMJgfVEYl2s47OE8c4=; b=QVo/aBT2h3lGdFX3y2GJh/k9ybrGq8YITsy/925piYOH88Lrz0C3cfwML/W6ctAGab YuWFzwHCrXzyNYE+CKF/D7NTNQCbpYRjSfvxqQDLiD9qxPLZMkrQjCB9215Y8KdFTfnP 2gc4dB5cFYgLQ/8iuvPYFC1fAm69wQKefY0d/uLt2UmNEOLjCftj3cNQMRmM/CZY9bHe QrwalgPxe82/UASFNL3EPWnuZCMcTz/l9U0lloIG8YJvIKUL/KL7skyiiSJHZTwFYV0v jrF5ICEFXiTpjGCHCvMZgsGI5kBXmhRyUXaJZ3yea1he5lnkB8bagTD8LogKhv/IzsbD KFtg== X-Gm-Message-State: AIkVDXIYT/IM6aRYRvt50NE2wliGsaOzHxUj3fYB2AEeu49FpDlobGY0T1q0h1AimSMr5A== X-Received: by 10.223.138.188 with SMTP id y57mr17918062wry.191.1485773486552; Mon, 30 Jan 2017 02:51:26 -0800 (PST) Received: from localhost (port-6519.pppoe.wtnet.de. [84.46.25.144]) by smtp.gmail.com with ESMTPSA id z90sm22283495wrc.24.2017.01.30.02.51.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2017 02:51:25 -0800 (PST) From: Thierry Reding To: Rob Herring Cc: Guenter Roeck , Sebastian Reichel , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Pawel Moll , Mark Rutland Subject: [PATCH 2/3] dt-bindings: power: reset: gpio-poweroff: Drop reference to pm_power_off Date: Mon, 30 Jan 2017 11:51:21 +0100 Message-Id: <20170130105122.6475-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170130105122.6475-1-thierry.reding@gmail.com> References: <20170130105122.6475-1-thierry.reding@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Guenter Roeck pm_power_off is an implementation detail. Replace it with a more generic description of the driver's functionality. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Acked-by: Mark Rutland Acked-by: Andrew Lunn Signed-off-by: Guenter Roeck Signed-off-by: Thierry Reding --- .../devicetree/bindings/power/reset/gpio-poweroff.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt index d4eab9227ea4..e62d53d844cc 100644 --- a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt +++ b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt @@ -2,12 +2,12 @@ Driver a GPIO line that can be used to turn the power off. The driver supports both level triggered and edge triggered power off. At driver load time, the driver will request the given gpio line and -install a pm_power_off handler. If the optional properties 'input' is -not found, the GPIO line will be driven in the inactive +install a handler to power off the system. If the optional properties +'input' is not found, the GPIO line will be driven in the inactive state. Otherwise its configured as an input. -When the pm_power_off is called, the gpio is configured as an output, -and drive active, so triggering a level triggered power off +When the power-off handler is called, the gpio is configured as an +output, and drive active, so triggering a level triggered power off condition. This will also cause an inactive->active edge condition, so triggering positive edge triggered power off. After a delay of 100ms, the GPIO is set to inactive, thus causing an active->inactive edge, @@ -24,7 +24,7 @@ Required properties: Optional properties: - input : Initially configure the GPIO line as an input. Only reconfigure - it to an output when the pm_power_off function is called. If this optional + it to an output when the power-off handler is called. If this optional property is not specified, the GPIO is initialized as an output in its inactive state.