From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpin.livedns.co.il (smtpin.livedns.co.il [62.219.78.209]) by ozlabs.org (Postfix) with ESMTP id AD469DDDE9 for ; Tue, 31 Jul 2007 17:59:27 +1000 (EST) From: "Yoni Levin" To: Subject: interrupts in mpc8313 Date: Tue, 31 Jul 2007 10:53:17 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C7D361.01C75E80" Message-ID: <1A95C6D899744E16A71AFFB2CF1C11B1.MAI@mail.livedns.co.il> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C7D361.01C75E80 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. ------=_NextPart_000_0015_01C7D361.01C75E80 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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=3DRequest_irq(71,interrupt_handler,SA_INTERU= PT,"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.=

 

------=_NextPart_000_0015_01C7D361.01C75E80-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id BB057DDDD5 for ; Tue, 31 Jul 2007 23:35:35 +1000 (EST) Message-ID: <46AF3A9C.4090007@freescale.com> Date: Tue, 31 Jul 2007 08:35:24 -0500 From: Scott Wood MIME-Version: 1.0 To: Yoni Levin Subject: Re: interrupts in mpc8313 References: <1A95C6D899744E16A71AFFB2CF1C11B1.MAI@mail.livedns.co.il> In-Reply-To: <1A95C6D899744E16A71AFFB2CF1C11B1.MAI@mail.livedns.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpin.livedns.co.il (smtpin.livedns.co.il [62.219.78.209]) by ozlabs.org (Postfix) with ESMTP id 945DDDDDFC for ; Tue, 31 Jul 2007 23:53:37 +1000 (EST) From: "Yoni Levin" To: "'Scott Wood'" Subject: RE: interrupts in mpc8313 Date: Tue, 31 Jul 2007 16:53:20 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <46AF3A9C.4090007@freescale.com> Message-ID: Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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