From: Andrew Jeffery <andrew@aj.id.au>
To: linux-gpio@vger.kernel.org
Cc: Andrew Jeffery <andrew@aj.id.au>,
linus.walleij@linaro.org, robh+dt@kernel.org,
mark.rutland@arm.com, frowand.list@gmail.com, joel@jms.id.au,
ckeepax@opensource.wolfsonmicro.com, ldewangan@nvidia.com,
ryan_chen@aspeedtech.com, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, openbmc@lists.ozlabs.org,
linux-aspeed@lists.ozlabs.org
Subject: [PATCH v2 0/2] gpio: Generalise state persistence (was: Expose reset tolerance capability)
Date: Mon, 30 Oct 2017 16:52:16 +1030 [thread overview]
Message-ID: <20171030062218.27005-1-andrew@aj.id.au> (raw)
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]. The only change in v2 is to rename the new pinconf property to convey
the concept of state persistence rather focussing on reset tolerance, based on
feedback from Charles Keepax[3].
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/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 | 58 ++++++++++++++++++++++++++++++---
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, 121 insertions(+), 20 deletions(-)
--
2.11.0
next reply other threads:[~2017-10-30 6:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-30 6:22 Andrew Jeffery [this message]
2017-10-30 6:22 ` [PATCH v2 1/2] gpio: gpiolib: Generalise state persistence beyond sleep Andrew Jeffery
[not found] ` <20171030062218.27005-2-andrew-zrmu5oMJ5Fs@public.gmane.org>
2017-10-30 9:57 ` Charles Keepax
2017-10-30 6:22 ` [PATCH v2 2/2] gpio: aspeed: Add support for reset tolerance Andrew Jeffery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171030062218.27005-1-andrew@aj.id.au \
--to=andrew@aj.id.au \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=joel@jms.id.au \
--cc=ldewangan@nvidia.com \
--cc=linus.walleij@linaro.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=openbmc@lists.ozlabs.org \
--cc=robh+dt@kernel.org \
--cc=ryan_chen@aspeedtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).