From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752759AbdKXJuw (ORCPT ); Fri, 24 Nov 2017 04:50:52 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:44997 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752387AbdKXJut (ORCPT ); Fri, 24 Nov 2017 04:50:49 -0500 X-Google-Smtp-Source: AGs4zMZivbhLKx17SL6V55acS5a3lWWgtx59B+KHLxEjNndsGfG+okBmaa7m6VeY9EN8LE+SKtfBK/+mrMaqeZDdnkU= MIME-Version: 1.0 In-Reply-To: <20171101040457.1200-2-andrew@aj.id.au> References: <20171101040457.1200-1-andrew@aj.id.au> <20171101040457.1200-2-andrew@aj.id.au> From: Linus Walleij Date: Fri, 24 Nov 2017 10:50:47 +0100 Message-ID: Subject: Re: [PATCH v3 1/2] gpio: gpiolib: Generalise state persistence beyond sleep To: Andrew Jeffery Cc: linux-gpio@vger.kernel.org, Rob Herring , Mark Rutland , Frank Rowand , Joel Stanley , Charles Keepax , Laxman Dewangan , Ryan Chen , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, OpenBMC Maillist , linux-aspeed@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 1, 2017 at 5:04 AM, Andrew Jeffery wrote: > General support for state persistence is added to gpiolib with the > introduction of a new pinconf parameter to propagate the request to > hardware. The existing persistence support for sleep is adapted to > include hardware support if the GPIO driver provides it. Persistence > continues to be enabled by default; in-kernel consumers can opt out, but > userspace (currently) does not have a choice. > > The *_SLEEP_MAY_LOSE_VALUE and *_SLEEP_MAINTAIN_VALUE symbols are > renamed, dropping the SLEEP prefix to reflect that the concept is no > longer sleep-specific. I feel that renaming to just *_MAY_LOSE_VALUE > could initially be misinterpreted, so I've further changed the symbols > to *_TRANSITORY and *_PERSISTENT to address this. > > The sysfs interface is modified only to keep consistency with the > chardev interface in enforcing persistence for userspace exports. > > Signed-off-by: Andrew Jeffery This does not apply to the Torvalds master HEAD anymore so please: - Collect ACKs - Rebase on Torvalds tree or v4.15-rc1 when it's out - Resend The functionality per se looks very nice :) so I want to apply this ASAP. Yours, Linus Walleij