[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANLzEkufu+MA67tBi9eXDTzPrSqT9jUNpMiCqeqckJog1JdVbA@mail.gmail.com>
Date: Thu, 19 Sep 2013 13:43:43 -0700
From: Benson Leung <bleung@...omium.org>
To: Tomasz Figa <tomasz.figa@...il.com>
Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-input@...r.kernel.org, linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org, david@...tonic.nl,
Douglas Anderson <dianders@...omium.org>
Subject: Re: [PATCH] Input: gpio_keys - wakeup_trigger
Hi Tomasz,
On Sat, Sep 14, 2013 at 5:16 AM, Tomasz Figa <tomasz.figa@...il.com> wrote:
> I don't like two things in this patch.
>
> First is that this looks completely like a configuration option, not
> hardware description, so it's not something that should be put into DT.
> Especially that users might want to use another wake-up trigger depending
> on their use cases. I'd rather see this as a sysfs entry.
>
> Another thing is that this driver assumes that key events are indicated by
> edges on the GPIO line, so I don't think level trigger setting make any
> sense here. I'd rather allow three settings here (through a sysfs knob) -
> key down, key up, key down or up.
Thanks for your feedback. I agree with your suggestions. I will move
this from platform data and DT to a sysfs property with three settings
: rising, falling, both.
--
Benson Leung
Software Engineer, Chrom* OS
bleung@...omium.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists