All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jeffery <andrew@aj.id.au>
To: Brad Bishop <bradleyb@fuzziesquirrel.com>
Cc: openbmc@lists.ozlabs.org, joel@jms.id.au
Subject: Re: [PATCH linux dev-4.7 v3 2/2] ARM: dts: Enable checkstop and cooling gpio keys
Date: Thu, 20 Apr 2017 14:04:52 +0930	[thread overview]
Message-ID: <1492662892.1011.7.camel@aj.id.au> (raw)
In-Reply-To: <F2CEC6F0-6FAD-41DB-9797-E6D63868FA6F@fuzziesquirrel.com>

[-- Attachment #1: Type: text/plain, Size: 2152 bytes --]

On Wed, 2017-04-19 at 10:38 -0400, Brad Bishop wrote:
> > > > On Apr 19, 2017, at 10:29 AM, Andrew Jeffery <andrew@aj.id.au> wrote:
> > 
> > Hi Brad,
> > 
> > If you do future revisions of these patches, can you please Cc me?
> 
> will do.
> 
> > 
> > On Wed, 2017-04-19 at 00:18 -0400, Brad Bishop wrote:
> > > Enable gpio-keys events for the checkstop and water/air cooled
> > > gpios for use by applications on the Witherspoon system.
> > > 
> > > > Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
> > > 
> > > ---
> > >  arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 20 ++++++++++++++++++++
> > >  1 file changed, 20 insertions(+)
> > > 
> > > diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> > > index e3a7b77..aa1708e 100644
> > > --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> > > +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> > > @@ -31,6 +31,26 @@
> > > > > > > >  		};
> > > >  	};
> > > 
> > >  
> > > +	gpio-keys@0 {
> > 
> > does the @0 give us a stable device name for userspace to open?
> 
> No it doesn’t.  This is my lack of DT skillz showing.  I was looking
> into how we can give userspace a stable device name.  I was going
> down the udev path but I can’t find any any of the information from
> these DT nodes in the udev event.
> 
> > 
> > Do we really want to go this way? We now have useful unique codes for
> > the "key"s, why not use the one node? Or is your concern we've now tied
> 
> Each gpio will have an application waiting for its state to change.  My
> concern was waking up x number of applications every time any gpio changes
> state.  Is that a valid concern?

How many applications do we expect to be reading the evdev? What are
our expected interrupt rates? What are the worst expected cases?

It's hard to judge without knowing the numbers, but considering the
chips we run on I agree we should generally favour performance if
design is getting in the way. But to make that trade off we should be
clear on the performance numbers.

Andrew

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-04-20  4:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19  4:18 [PATCH linux dev-4.7 v3 0/2] enable gpio-keys Brad Bishop
2017-04-19  4:18 ` [PATCH linux dev-4.7 v3 1/2] ARM: configs: aspeed: Enable keyboard-gpio Brad Bishop
2017-04-19  4:18 ` [PATCH linux dev-4.7 v3 2/2] ARM: dts: Enable checkstop and cooling gpio keys Brad Bishop
2017-04-19 14:29   ` Andrew Jeffery
2017-04-19 14:38     ` Brad Bishop
2017-04-20  4:34       ` Andrew Jeffery [this message]
2017-04-20 14:24         ` Brad Bishop
2017-04-21  0:35           ` Andrew Jeffery
2017-04-21  2:14           ` Joel Stanley
2017-04-21  3:32             ` Brad Bishop

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=1492662892.1011.7.camel@aj.id.au \
    --to=andrew@aj.id.au \
    --cc=bradleyb@fuzziesquirrel.com \
    --cc=joel@jms.id.au \
    --cc=openbmc@lists.ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.