[RFC/PATCH 4/4] gpio: smscece: Add support for gpio IO expander feature

From
Mark Brown <hidden>
Date
2012-08-21 14:50:16
Also in
linux-devicetree, linux-input, linux-omap, lkml
Reply to
Felipe Balbi, 2012-08-21
On Tue, Aug 21, 2012 at 03:22:18PM +0300, Felipe Balbi wrote:
On Tue, Aug 21, 2012 at 05:50:28PM +0530, Poddar, Sourav wrote:
quoted
If I am understanding correctly, if they both uses the same bit we cannot
use both for a particular user. ?
we can, it's just a bit more complex. If a user request both LOW and
HIGH, then you start with HIGH, once it triggers, before calling the
nested IRQ handler, you need to change it LOW. When low triggers, before
calling the nested IRQ handler, you need to change it to HIGH again. And
so on. I'm just not sure if that's valid on linux IRQ subsystem.
The given example was for keypress - usually a system would use edge
triggered interrupts in combination with reading the GPIO state rather
than level triggered interrupts.
Thread (26 messages) 26 messages, 3 authors, last reply 2012-08-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help