From patchwork Thu Nov 30 03:55:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 842869 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ynNqz22TMz9sBd for ; Thu, 30 Nov 2017 14:56:31 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="Se7DUxfK"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="jVe5XKm7"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3ynNqz0mNlzDrpt for ; Thu, 30 Nov 2017 14:56:31 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="Se7DUxfK"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="jVe5XKm7"; dkim-atps=neutral X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=aj.id.au (client-ip=66.111.4.28; helo=out4-smtp.messagingengine.com; envelope-from=andrew@aj.id.au; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="Se7DUxfK"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="jVe5XKm7"; dkim-atps=neutral Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3ynNq15l9qzDrpm; Thu, 30 Nov 2017 14:55:41 +1100 (AEDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F34CF20BC9; Wed, 29 Nov 2017 22:55:38 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Wed, 29 Nov 2017 22:55:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=wwr35b1XR0dyZZ+f+tBZdRHKlZwWjnsE1POxglNG7 AU=; b=Se7DUxfKP9rI9NLElJU4SwHVjhhSaOjpIgkF9x8rEgVaC8T3mm0mvleZ5 6Mla4zAeHyJDOQIn7hC65eOWHTVc+xjXFnFQek6rtSHtwE5ihyWwpMSWU6tDgqOF e6guLnxHRtwwUTbKmZNlmUSuxUuqQH97r2qnfemvvnQteScuHDUKimL6y06MHSs9 sBn5yO865oRQ3yvR0aQJ95Q0F+7JTds6ziq/1fQbdVc4y7lW681SWkePspPy9Z8X x33vG7WW63jjHezkWJ/uvIEN8k98elcDLL2WbR16/RBkhvWO9orKnNuChAWhmSLD 80XRxkWGZGKal5Iv6ZTYNDzimWVqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=wwr35b1XR0dyZZ+f+ tBZdRHKlZwWjnsE1POxglNG7AU=; b=jVe5XKm7DRzH5zKlxx98QluQAAeygChWU tGLuZY3r685z3hSxd2d1thW+01JKfibDmLOkTqj4E3qSKa5MMA2J5fJIENItkESk J3AEPA1UVOGXkFRHNEM6YyieNX5kUTHHaEC9uIiCvGsUeZV0ZMW1aQX17LWtcl7I eB83PY5+XbzbrxDyl0+Fu+rqZUwUXtKNDG4OG75jmhLLIfqVs61IMAx979swRBE1 vIOjQD+xnv58rr/E5dCW/GC9W15LOzXmNIpBjaJks5RlrZZfYzH1Nom1yOFw2Cm/ Z6RSgQWZ0JW/FHPaCaH70ci0T+IobBDsO1A0Jr1nZa+dLFzByl5lA== X-ME-Sender: Received: from dave.aj.id.au (ppp14-2-29-107.bras21.adl4.internode.on.net [14.2.29.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 3BD9924738; Wed, 29 Nov 2017 22:55:33 -0500 (EST) From: Andrew Jeffery To: linux-gpio@vger.kernel.org Subject: [PATCH v4 0/2] gpio: Generalise state persistence Date: Thu, 30 Nov 2017 14:25:23 +1030 Message-Id: <20171130035525.29653-1-andrew@aj.id.au> X-Mailer: git-send-email 2.14.1 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, ryan_chen@aspeedtech.com, linux-aspeed@lists.ozlabs.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, ldewangan@nvidia.com, ckeepax@opensource.wolfsonmicro.com, frowand.list@gmail.com, openbmc@lists.ozlabs.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" Hello, This series provides an API to configure general GPIO state persistence in gpiolib. Previously, only sleep persistence was considered, but controllers like one found in Aspeed BMCs also support persistence of state across controller resets. There is some prior discussion on v1[1] and the initial RFC[2], and minor comments on v2[3]. v3 addresses minor issues with comments and debug statements[4], removing remaining references to reset tolerance. v4 is just a rebase of v3 onto v4.15-rc1, fixing a conflict with the new PIN_CONFIG_SKEW_DELAY pinconf parameter. Please review! Andrew [1] https://www.spinics.net/lists/devicetree/msg200027.html [2] https://www.spinics.net/lists/devicetree/msg199559.html [3] https://www.spinics.net/lists/kernel/msg2635769.html [4] https://www.spinics.net/lists/devicetree/msg200040.html Andrew Jeffery (2): gpio: gpiolib: Generalise state persistence beyond sleep gpio: aspeed: Add support for reset tolerance drivers/gpio/gpio-aspeed.c | 39 +++++++++++++++++++-- drivers/gpio/gpiolib-of.c | 6 ++-- drivers/gpio/gpiolib-sysfs.c | 14 +++++--- drivers/gpio/gpiolib.c | 61 ++++++++++++++++++++++++++++++--- drivers/gpio/gpiolib.h | 2 +- include/dt-bindings/gpio/gpio.h | 6 ++-- include/linux/gpio/consumer.h | 8 +++++ include/linux/gpio/machine.h | 4 +-- include/linux/of_gpio.h | 2 +- include/linux/pinctrl/pinconf-generic.h | 2 ++ 10 files changed, 124 insertions(+), 20 deletions(-)