Skip to contentSkip to conversation

request_irq with xenomai

Xenomai aking_jin 2 participants 2 messages Jun 21, 2013

lore
Share & tools
lore

aking_jin

author
#0 lore raw

Hi,all
I've patched the kernel 3.5.7 with xenomai,and xenomai have been
enabled. After that, I want to have a normal gpio interrupt test with normal way using request_irq, found its return value is -/EINVAL, Finally found that IRQ_NOREQUEST was set in the irq_desc[irq_number] through debug. could you give me some advice? thanks.
the following was the irq_desc of irq_gpio:

[ 66.087719] irq 10, desc: c1805600, depth: 0, count: 0,
unhandled: 0

        [   66.097903] ->handle_irq():  c0065678, 
__ipipe_chained_irq+0x0/0x4
        [   66.104157] ->irq_data.chip(): c052de50, 
pxa_internal_irq_chip+0x0/0x70
        [   66.110751] ->action():   (null)
        [   66.114010]    IRQ_NOPROBE set
        [   66.117039]  IRQ_NOREQUEST set
        [   66.120063]   IRQ_NOTHREAD set

Thank you very much~
/

Signature · 2 lines
Best Regards
aking_jin
#1 lore raw
Quoted 19 lines · aking_jin

Hi,all
I've patched the kernel 3.5.7 with xenomai,and xenomai have been
enabled. After that, I want to have a normal gpio interrupt test with normal way using request_irq, found its return value is -/EINVAL, Finally found that IRQ_NOREQUEST was set in the irq_desc[irq_number] through debug. could you give me some advice? thanks.
the following was the irq_desc of irq_gpio:

[ 66.087719] irq 10, desc: c1805600, depth: 0, count: 0,
unhandled: 0

         [   66.097903] ->handle_irq():  c0065678, 
__ipipe_chained_irq+0x0/0x4
         [   66.104157] ->irq_data.chip(): c052de50, 
pxa_internal_irq_chip+0x0/0x70
         [   66.110751] ->action():   (null)
         [   66.114010]    IRQ_NOPROBE set
         [   66.117039]  IRQ_NOREQUEST set
         [   66.120063]   IRQ_NOTHREAD set
Quoted 3 lines

Thank you very much~
/

I would say you are using the wrong irq number, you are using the irq number of the parent, multiplexed interrupt, instead of using the per-gpio irq number (which you should obtain with gpio_to_irq), but this question is off-topic on this list, since it has nothing to do with xenomai.

Signature · 1 line
                                                                Gilles.