2008-08-18 07:14:57 Interrupts Problem
Appalayagari Sreedhar (INDIA)
Message: 60568
Hi,
In my custom board BF533, two devices ethernet and IR demodulator are interfaced with the PF pins.
we are opening the ethernet device and requesting the irq in the init routine. So when the kernel boots this is done.
for IR we are doing it in the open function, which will be called when we run the application.
irq numbers assigned are different for the two devices. but we could see that PF FlagA channel is producing the interrupt for both the devices.
once kernel is booted, my application starts running, before opening the IR device if i press the remote key, the program execution is coming into the remote ISR routine.
but i have not called anywhere in the kernel request_irq function for the IR device.
Why this behaviour is seen?. How i can avoid this behaviour?.
request_irq syntax for ethernet device is.
request_irq(dev->irq, smc9111x_irqhandler, SA_INTERRUPT,
SMC_CHIPNAME, dev);
Best Regards, Sreedhar.
QuoteReplyEditDelete
2008-08-18 07:32:15 Re: Interrupts Problem
Michael Hennerich (GERMANY)
Message: 60571
What Linux and Blackfin Release version are you using?
QuoteReplyEditDelete
2008-08-18 07:43:28 Re: Interrupts Problem
Appalayagari Sreedhar (INDIA)
Message: 60572
Hi,
I am using uClinux distribution 2007 R1-RC3 BF533 rev 0.5
Best Regards,Sreedhar
QuoteReplyEditDelete
2008-08-18 07:57:02 Re: Interrupts Problem
Michael Hennerich (GERMANY)
Message: 60573
You said that programm executions jumps into your IR_IRQ_handler before you request the GPIO_IR_IRQ ?
-Michael
QuoteReplyEditDelete
2008-08-18 08:23:29 Re: Interrupts Problem
Appalayagari Sreedhar (INDIA)
Message: 60576
Hi,
Yes exactly,why this is happening.
is this because ethernet device and IR connected to PF pins and use the same Flag A channel?
Best Regards, Sreedhar.
QuoteReplyEditDelete
2008-08-18 08:36:04 Re: Interrupts Problem
Michael Hennerich (GERMANY)
Message: 60577
This doesn't make any sense - if you didn't request the IR_IRQ then the kernel doesn't know anything about your IR_IRQ_handler function.
And then it's very unlikly that you end up in this function.
can you capture a #cat /proc/interrupts and post the output?
-Michael
QuoteReplyEditDelete
2008-08-18 09:04:29 Re: Interrupts Problem
Michael Hennerich (GERMANY)
Message: 60578
I wonder if you are aware of the Blackfin LIRC drivers:
http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:lirc
and Hardware:
http://docs.blackfin.uclinux.org/doku.php?id=hw:cards:ir-trx
-Michael
QuoteReplyEditDelete
2008-08-18 11:10:36 Re: Interrupts Problem
Appalayagari Sreedhar (INDIA)
Message: 60579
Hi,
Yes i too feel the same, without requesting the irq how IR_IRQ is called?.
my doubt is it because both the ehernet and IR device uses the PFFlag A channel. if request_irq is called for ethernet device.
Can someone please help me in clarifying the same.
Best Regards,Sreedhar.
QuoteReplyEditDelete
2008-08-18 14:38:48 Re: Interrupts Problem
Robin Getz (UNITED STATES)
Message: 60591
Sreedhar:
It is not likely this is happening - can you provide the information Michael asked for?
thanks
QuoteReplyEditDelete
2008-08-19 10:40:04 Re: Interrupts Problem
Appalayagari Sreedhar (INDIA)
Message: 60650
Hi Robin and Micheal,
Sorry, I did something stupid, printf i misplaced.
Thankyou very much.
-Sreedhar