From: Marco Felsch <m.felsch@pengutronix.de>
To: dmitry.torokhov@gmail.com, broonie@kernel.org,
mark.rutland@arm.com, robh+dt@kernel.org
Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
linux-input@vger.kernel.org, kernel@pengutronix.de
Subject: [PATCH 0/3] Add GPIO brownout detection support
Date: Tue, 25 Sep 2018 11:42:27 +0200 [thread overview]
Message-ID: <20180925094230.32679-1-m.felsch@pengutronix.de> (raw)
Hi,
this small series adds a generic gpio-based brownout detection driver to
inform the userspace that something went wrong.
Additional there is a optional support to release devices from their
drivers, because there are board power designs which cut of external
devices supply immediately and keep the host (SoC) alive for a few
seconds to switch into a safe state. Due to the hard power cut some
external devices throw interrupts and depending of the amount of
external devices these interrupts will flood the host. The driver
unloads all specified devices from their drivers so the interrupts are
ignored. At the moment only spi and i2c devices are supported.
I've tested the driver on a customer arm based board, but other testers
are welcome. Maybe there are problems unloading device drivers which have a
incorrect .remove() or devm_alloc() order. Then these drivers must be
fixed.
Regards,
Marco
Marco Felsch (3):
spi: switch to SPDX license identifier
spi: make OF helper available for others
Input: add generic gpio brownout driver
.../bindings/input/gpio-brownout.txt | 36 ++++
drivers/input/misc/Kconfig | 12 ++
drivers/input/misc/Makefile | 1 +
drivers/input/misc/gpio-brownout.c | 166 ++++++++++++++++++
drivers/spi/spi.c | 18 +-
include/linux/spi/spi.h | 30 ++--
6 files changed, 239 insertions(+), 24 deletions(-)
create mode 100644 Documentation/devicetree/bindings/input/gpio-brownout.txt
create mode 100644 drivers/input/misc/gpio-brownout.c
--
2.19.0
next reply other threads:[~2018-09-25 9:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-25 9:42 Marco Felsch [this message]
2018-09-25 9:42 ` [PATCH 1/3] spi: switch to SPDX license identifier Marco Felsch
2018-09-27 22:40 ` Applied "spi: switch to SPDX license identifier" to the spi tree Mark Brown
2018-09-25 9:42 ` [PATCH 2/3] spi: make OF helper available for others Marco Felsch
2018-09-27 22:38 ` Mark Brown
2018-09-27 22:40 ` Applied "spi: make OF helper available for others" to the spi tree Mark Brown
2018-09-25 9:42 ` [PATCH 3/3] Input: add generic gpio brownout driver Marco Felsch
2018-09-29 0:19 ` Dmitry Torokhov
2018-10-01 7:19 ` Marco Felsch
2018-10-01 16:35 ` Trent Piepho
2018-10-09 22:43 ` Marco Felsch
2018-09-25 17:09 ` [PATCH 0/3] Add GPIO brownout detection support Mark Brown
2018-09-26 8:15 ` Marco Felsch
2018-09-26 12:19 ` Mark Brown
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=20180925094230.32679-1-m.felsch@pengutronix.de \
--to=m.felsch@pengutronix.de \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-input@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
/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).