Thread (3 messages) 3 messages, 2 authors, 2012-01-19

RE: [PATCH V1] input: keyboard: Add interrupt keyboard driver.

From: Laxman Dewangan <ldewangan@nvidia.com>
Date: 2012-01-19 07:39:30
Also in: lkml

On Thursday, January 19, 2012 1:00 PM, Dmitry Torokhov wrote:
On Tue, Jan 17, 2012 at 11:11:55AM +0530, Laxman Dewangan wrote:
quoted
This driver enables the key detection of the keys which
are connected to interrupt lines.
Each key is capable of generating an interrupt, and the
statesi (pressed or released) cannot be found by any
mechanism.
A key press event generated when interrupt occurs, and
based on the debounce time setting, a key release event
is generated. There is no need to read the state of the
keys.

Is it possible to modify gpio_keys to skip requesting and settin up
certain gpios and and use it instead of a brand new driver?
I first tried this approach and found that this makes the gpio_keys
driver very complex because almost all places where gpio-apis are
getting called need to put under if condition.
Also there is some special handling for auto key release events
Which makes gpio-key driver again complex.



--
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help