Thread (6 messages) 6 messages, 3 authors, 2010-06-15

Re: [PATCH V2] matrix_keypad: add support for clustered irq

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2010-06-15 03:15:47
Also in: lkml

On Thursday, May 27, 2010 08:14:50 am Eric Miao wrote:
On Thu, May 27, 2010 at 2:43 PM, Luotao Fu [off-list ref] wrote:
quoted
This one adds support of a combined irq source for the whole matrix keypad.
This can be useful if all rows and columns of the keypad are e.g. connected
to a GPIO expander, which only has one interrupt line for all events on
every single GPIO.

Signed-off-by: Luotao Fu <redacted>
I feel OK. Acked-by: Eric Miao [off-list ref]
quoted
---
V2 Changes:
* create separate functions for suspend/resume calls.
* add bool flag to signal enable/disable state of all gpios.
* add spinlock to suspend and resume callbacks.
The spinlock is not needed, it should be OK to get interrupted in the middle
of setting up wakeup sources. The enable/disable irq is different as if we
get interrupted in the middle of the process our counters will get messed
up.

Fixed a few compile warnings and applied for .36.

Thanks.

-- 
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