* Interrupt handler not executed
@ 2013-01-11 7:36 R.Patil
2013-01-11 18:16 ` Scott Wood
0 siblings, 1 reply; 3+ messages in thread
From: R.Patil @ 2013-01-11 7:36 UTC (permalink / raw)
To: linuxppc-dev
Hello,
We are working on board based on Freescale MPC8313ERDB. We have ported linu=
x 3.0.46 kernel on it. In one of device driver written by us, we need to ta=
ke some action upon asserting IRQ0 interrupt. For this we have written inte=
rrupt handler which takes care of this. We are able register interrupt hand=
ler successfully with the help of 'request=5Firq'. We confirmed this by che=
cking respective entry in '/proc/interrupts'. We have also confirmed assert=
ion of interrupt line (IRQ0) on oscilloscope. The problem is, interrupt han=
dler does not execute upon asserting the interrupt line. =20
Interesting part is, we have similar requirement in other drivers but for d=
ifferent interrupt lines. The interrupt handler for them executes successfu=
lly. What could be the possible reasons for this behaviour (not invoking IR=
Q0 interrupt handler)? If anybody could give a hint to solve or debug the p=
roblem?
Kind Regards,
Rahul PatilEmail Disclaimer:
---------------------------
This e-mail and any files transmitted with it are for the sole use of the i=
ntended recipient(s) and may contain confidential and privileged informati=
on. Computer viruses can be transmitted via email.The recipient should chec=
k this email and any attachments for the presence of viruses. The company =
accepts no liability for any damage caused by any virus transmitted by this=
email.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Interrupt handler not executed
2013-01-11 7:36 Interrupt handler not executed R.Patil
@ 2013-01-11 18:16 ` Scott Wood
2013-01-14 11:34 ` [Solved] " R.Patil
0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2013-01-11 18:16 UTC (permalink / raw)
To: R.Patil; +Cc: linuxppc-dev
On 01/11/2013 01:36:29 AM, R.Patil@mei-india.com wrote:
> Hello,
>=20
> We are working on board based on Freescale MPC8313ERDB. We have =20
> ported linux 3.0.46 kernel on it. In one of device driver written by =20
> us, we need to take some action upon asserting IRQ0 interrupt. For =20
> this we have written interrupt handler which takes care of this. We =20
> are able register interrupt handler successfully with the help of =20
> 'request_irq'. We confirmed this by checking respective entry in =20
> '/proc/interrupts'. We have also confirmed assertion of interrupt =20
> line (IRQ0) on oscilloscope. The problem is, interrupt handler does =20
> not execute upon asserting the interrupt line.
What IRQ number did you pass to request_irq()? request_irq() takes =20
virtual interrupt numbers, not anything out of the chip manual.
If that's not the issue, is the interrupt configured properly for level =20
and sense?
-Scott=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Solved] Interrupt handler not executed
2013-01-11 18:16 ` Scott Wood
@ 2013-01-14 11:34 ` R.Patil
0 siblings, 0 replies; 3+ messages in thread
From: R.Patil @ 2013-01-14 11:34 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev
Hello Scott,
Thanks for your immediate response. The problem has been resolved. Actually=
, I was wrong in pointing out the problem.=20
The problem was lying in interrupt handler. The first statement in interrup=
t handler was disable=5Firq() which was leading into a deadlock. I replaced=
'disable=5Firq' with 'disable=5Firq=5Fnosync()' and it worked. =20
Thanks and Regards,
Rahul Patil
-----Scott Wood <scottwood@freescale.com> wrote: -----
To: <R.Patil@mei-india.com>
From: Scott Wood <scottwood@freescale.com>
Date: 01/11/2013 11:46PM
Cc: <linuxppc-dev@lists.ozlabs.org>
Subject: Re: Interrupt handler not executed
On 01/11/2013 01:36:29 AM, R.Patil@mei-india.com wrote:
> Hello,
>=20
> We are working on board based on Freescale MPC8313ERDB. We have =20
> ported linux 3.0.46 kernel on it. In one of device driver written by =20
> us, we need to take some action upon asserting IRQ0 interrupt. For =20
> this we have written interrupt handler which takes care of this. We =20
> are able register interrupt handler successfully with the help of =20
> 'request=5Firq'. We confirmed this by checking respective entry in =20
> '/proc/interrupts'. We have also confirmed assertion of interrupt =20
> line (IRQ0) on oscilloscope. The problem is, interrupt handler does =20
> not execute upon asserting the interrupt line.
What IRQ number did you pass to request=5Firq()? request=5Firq() takes =20
virtual interrupt numbers, not anything out of the chip manual.
If that's not the issue, is the interrupt configured properly for level =20
and sense?
-Scott
Email Disclaimer:
---------------------------
This e-mail and any files transmitted with it are for the sole use of the i=
ntended recipient(s) and may contain confidential and privileged informati=
on. Computer viruses can be transmitted via email.The recipient should chec=
k this email and any attachments for the presence of viruses. The company =
accepts no liability for any damage caused by any virus transmitted by this=
email.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-14 11:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 7:36 Interrupt handler not executed R.Patil
2013-01-11 18:16 ` Scott Wood
2013-01-14 11:34 ` [Solved] " R.Patil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).