aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorTony Lindgren <[email protected]>2013-10-02 21:39:40 -0700
committerTony Lindgren <[email protected]>2013-10-10 15:30:30 -0700
commit3e6cee1786a13cb2308609b5f8c020e1754e37cf (patch)
treef76f85def8d2fd5654146ff9e612371590555573 /lib/test-string_helpers.c
parent02e483f66deb6bd8df6af450726574614eb53be3 (diff)
pinctrl: single: Add support for wake-up interrupts
The pin control registers can have interrupts for example for device wake-up. These interrupts can be treated as a chained interrupt controller as suggested earlier by Linus Walleij <[email protected]>. This patch adds support for interrupts in a way that should be pretty generic, and works for the omaps that support wake-up interrupts. On omaps, there's an interrupt enable and interrupt status bit for each pin. The two pinctrl domains on omaps share a single interrupt from the PRM chained interrupt handler. Support for other similar hardware should be easy to add. Note that this patch does not attempt to handle the wake-up interrupts automatically unlike the earlier patches. This patch allows the device drivers to do a request_irq() on the wake-up pins as needed. I'll try to do also a separate generic patch for handling the wake-up events automatically. Also note that as this patch makes the pinctrl-single an irq controller, the current bindings need some extra trickery to use interrupts from two different interrupt controllers for the same driver. So it might be worth waiting a little on the patches enabling the wake-up interrupts from drivers as there should be a generic way to handle it coming. And also there's been discussion of interrupts-extended binding for using interrupts from multiple interrupt controllers. In any case, this patch should be ready to go allowing handling the wake-up interrupts in a generic way, or separately from the device drivers. Cc: Peter Ujfalusi <[email protected]> Cc: Grygorii Strashko <[email protected]> Cc: Prakash Manjunathappa <[email protected]> Cc: Roger Quadros <[email protected]> Cc: [email protected] Cc: BenoĆ®t Cousson <[email protected]> Cc: [email protected] Acked-by: Linus Walleij <[email protected]> Acked-by: Haojian Zhuang <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Tested-by: Kevin Hilman <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions