From: Trent Piepho <tpiepho@impinj.com>
To: "dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>,
"m.felsch@pengutronix.de" <m.felsch@pengutronix.de>
Cc: "linux-spi@vger.kernel.org" <linux-spi@vger.kernel.org>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"broonie@kernel.org" <broonie@kernel.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"kernel@pengutronix.de" <kernel@pengutronix.de>
Subject: Re: [PATCH 3/3] Input: add generic gpio brownout driver
Date: Mon, 1 Oct 2018 16:35:14 +0000 [thread overview]
Message-ID: <1538411713.6709.3.camel@impinj.com> (raw)
In-Reply-To: <20181001071921.hxu2vlqeji4f52gd@pengutronix.de>
On Mon, 2018-10-01 at 09:19 +0200, Marco Felsch wrote:
> On 18-09-28 17:19, Dmitry Torokhov wrote:
> >
> > >
> > > This patch adds the support for a generic gpio-based brownout
> > > detection. Upon a brownout the host system gets informed and the driver
> > > sends a keycode signal to the userspace. Per default this signal is
> > > mapped to KEY_POWER, so the system will shoutdown.
> >
> > I do not believe this functionality should be exposed as an input
> > device, as it has nothing to do with human interaction with the
> > computing device. To me this is akin over-current on a USB port, or
> > carrier signal on network interfaces.
>
> I'm still uncertain putting the code into the input framework. I tought
> a lot about the correct place. For me it's like a button, which is
> 'pressed' by the hardware. Yes, it's a bit abstract..
For quite a few years, the hwmon subsystem has had devices that will
generate an interrupt on low voltage (or high voltage, or high
temperature ...) and drivers that export that interrupt to userspace.
This device doesn't seem any different that a somewhat limited hwmon
device with just an "in0_alarm" attribute.
next prev parent reply other threads:[~2018-10-01 23:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-25 9:42 [PATCH 0/3] Add GPIO brownout detection support Marco Felsch
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 [this message]
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=1538411713.6709.3.camel@impinj.com \
--to=tpiepho@impinj.com \
--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=m.felsch@pengutronix.de \
--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).