From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jeffery 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> Return-path: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Andrew Jeffery , linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org, ckeepax-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org, ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, ryan_chen-SAlXDmAnmOAqDJ6do+/SaQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, openbmc-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-aspeed-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: linux-gpio@vger.kernel.org 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(-) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html