Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753713AbdDJUSC (ORCPT ); Mon, 10 Apr 2017 16:18:02 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:35163 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752479AbdDJUSA (ORCPT ); Mon, 10 Apr 2017 16:18:00 -0400 Date: Mon, 10 Apr 2017 15:17:58 -0500 From: Rob Herring To: Charles Keepax Cc: linus.walleij@linaro.org, lee.jones@linaro.org, gnurou@gmail.com, mark.rutland@arm.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.wolfsonmicro.com Subject: Re: [PATCH 1/2] mfd: arizona: Add GPIO maintain state flag Message-ID: <20170410201758.lobmtzxt2jgcwwvc@rob-hp-laptop> References: <1491568725-14882-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1491568725-14882-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1089 Lines: 22 On Fri, Apr 07, 2017 at 01:38:44PM +0100, Charles Keepax wrote: > The Arizona devices only maintain the state of output GPIOs whilst the > CODEC is active, this can cause issues if the CODEC suspends whilst > something is relying on the state of one of its GPIOs. However, in > many systems the CODEC GPIOs are used for audio related features > and thus the state of the GPIOs is unimportant whilst the CODEC is > suspended. Often keeping the CODEC resumed in such a system would > incur a power impact that is unacceptable. > > Add a flag through the second cell of the GPIO specifier in device > tree, to allow the user to select whether a GPIO being configured as > an output should keep the CODEC resumed. If the whole codec can't be suspended, why does this need to be per GPIO? You could just have a single boolean property. > > Signed-off-by: Charles Keepax > --- > Documentation/devicetree/bindings/mfd/arizona.txt | 5 ++++- > include/dt-bindings/mfd/arizona.h | 3 +++ > 2 files changed, 7 insertions(+), 1 deletion(-)