LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoni Levin" <yoni.l@slyde-tech.com>
To: "'Scott Wood'" <scottwood@freescale.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: interrupts in mpc8313
Date: Tue, 31 Jul 2007 16:53:20 +0300	[thread overview]
Message-ID: <DD658DAB65814DF6A223A007EC5735FE.MAI@mail.livedns.co.il> (raw)
In-Reply-To: <46AF3A9C.4090007@freescale.com>

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

      reply	other threads:[~2007-07-31 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DD658DAB65814DF6A223A007EC5735FE.MAI@mail.livedns.co.il \
    --to=yoni.l@slyde-tech.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=scottwood@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox