All of lore.kernel.org
 help / color / mirror / Atom feed
* interrupts in mpc8313
@ 2007-07-31  7:53 Yoni Levin
  2007-07-31 13:35 ` Scott Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Yoni Levin @ 2007-07-31  7:53 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

Hi, I am working on the MPC8313E board , 

 

I work with the DMA that works fine, but I want to get the interrupt when it
finish.

 

I am working under linux 2.6.20

 

I tried to use the function request_irq :

 

Ret=Request_irq(71,interrupt_handler,SA_INTERUPT,"dma_irq",NULL);

 

But I receive an error -ENOSYS

 

Do I need to do something before call the Request_irq?

 

You know what is wrong?

 

Thank you for your help, 

 

Yehonatan.

 


[-- Attachment #2: Type: text/html, Size: 5406 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: interrupts in mpc8313
  2007-07-31  7:53 interrupts in mpc8313 Yoni Levin
@ 2007-07-31 13:35 ` Scott Wood
  2007-07-31 13:53   ` Yoni Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2007-07-31 13:35 UTC (permalink / raw)
  To: Yoni Levin; +Cc: linuxppc-embedded

Yoni Levin wrote:
> I tried to use the function request_irq :
> 
>  
> 
> Ret=Request_irq(71,interrupt_handler,SA_INTERUPT,"dma_irq",NULL);

arch/ppc or arch/powerpc?

If the latter, you need to translate the hardware IRQ into a virtual 
IRQ.  The easiest way to do this is to put the DMA node into the device 
tree and use of_irq_to_resource().

Plus, this obviously isn't the exact code you're running, as the 
spelling and capitalization errors would keep it from compiling.

-Scott

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: interrupts in mpc8313
  2007-07-31 13:35 ` Scott Wood
@ 2007-07-31 13:53   ` Yoni Levin
  0 siblings, 0 replies; 3+ messages in thread
From: Yoni Levin @ 2007-07-31 13:53 UTC (permalink / raw)
  To: 'Scott Wood'; +Cc: linuxppc-embedded

All I had to do was to add :
irq_create_mapping(NULL,71)
and yes it not the exact code , I work with 2 computers...
thanks.


-----Original Message-----
From: Scott Wood [mailto:scottwood@freescale.com] 
Sent: Tuesday, July 31, 2007 4:35 PM
To: Yoni Levin
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: interrupts in mpc8313

Yoni Levin wrote:
> I tried to use the function request_irq :
> 
>  
> 
> Ret=Request_irq(71,interrupt_handler,SA_INTERUPT,"dma_irq",NULL);

arch/ppc or arch/powerpc?

If the latter, you need to translate the hardware IRQ into a virtual 
IRQ.  The easiest way to do this is to put the DMA node into the device 
tree and use of_irq_to_resource().

Plus, this obviously isn't the exact code you're running, as the 
spelling and capitalization errors would keep it from compiling.

-Scott

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-31 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31  7:53 interrupts in mpc8313 Yoni Levin
2007-07-31 13:35 ` Scott Wood
2007-07-31 13:53   ` Yoni Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.