linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@tbox.biz>
To: linuxppc-embedded@ozlabs.org
Subject: Re: MPC8272: Edge triggered IRQ
Date: Tue, 12 Dec 2006 09:02:47 +0100	[thread overview]
Message-ID: <200612120902.47823.laurent.pinchart@tbox.biz> (raw)
In-Reply-To: <457E1884.6050501@rftechnology.com.au>

> Found solution:
>
> immap->im_intctl.ic_siexr |= (1 << (14 - (irq - SIU_INT_IRQ1)));
>
> Makes it trigger on falling edge

Don't forget to set

        irq_desc[SIU_INT_IRQ1].status &= ~IRQ_LEVEL;

That should be done in the IRQ initialization function referenced by 
ppc_md.init_IRQ.

> > I have pretty simple code that I did a long time ago
> >
> > irqreturn_t irq_handler(int irq, void *dev_id, struct pt_regs *regs)
> > {
> >   ..
> >  return IRQ_HANDLED;
> > }
> >
> >
> > request_irq(irq,
> >             &irq_handler,
> >             SA_INTERRUPT,
> >             "irq handler",
> >              NULL);
> >
> > That code runs on MPC8272 and 2.6.18 kernel.
> > It triggers IRQ on low level (I thought it was falling edge by default).
> > So, as long as I have input low level I have hundreds of calls. Pretty
> > much it keeps calling IRQ handling routine.
> > How do I make it to trigger on falling edge?

Laurent Pinchart

      reply	other threads:[~2006-12-12  8:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-12  1:59 MPC8272: Edge triggered IRQ Dmytro Bablinyuk
2006-12-12  2:48 ` Dmytro Bablinyuk
2006-12-12  8:02   ` Laurent Pinchart [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=200612120902.47823.laurent.pinchart@tbox.biz \
    --to=laurent.pinchart@tbox.biz \
    --cc=linuxppc-embedded@ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).