* [MPC5200] using GPT's for interrupts
@ 2012-06-15 12:58 Albrecht Dreß
0 siblings, 0 replies; only message in thread
From: Albrecht Dreß @ 2012-06-15 12:58 UTC (permalink / raw)
To: linuxppc-dev
Hi all,
I currently try to use a MPC5200B GPT as interrupt source, which according to the comment at the start of arch/powerpc/platforms/52xx/mpc52xx_gpt.c is possible if the "interrupt-controller" and "#interrupt-cells = < 1 >" properties are added to the device tree node.
Apparently, /some/ work is done during startup, as I can see in the boot log:
[ 0.438623] gpiochip_find_base: found new base at 251
[ 0.444202] mpc52xx-gpt f0000650.timer: mpc52xx_gpt_irq_setup() complete. virq=78
In my driver, I identify the GPT node, call irq_of_parse_and_map() to get the irq number (which succeeds, with the same number as above), but unfortunately request_irq() or devm_request_irq() for this irq fail with error -22. I tracked the failed call down to request_threaded_irq() which ejects because irq_settings_can_request(desc) returns false.
Before digging deeper into the code, maybe someone can tell me what I missed... I'm using kernel 3.2.16.
Thanks in advance,
Albrecht.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-15 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-15 12:58 [MPC5200] using GPT's for interrupts Albrecht Dreß
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox