From: Dmytro Bablinyuk <dmytro.bablinyuk@rftechnology•com.au>
To: linuxppc-embedded@ozlabs•org
Subject: Re: MPC8272: Edge triggered IRQ
Date: Tue, 12 Dec 2006 13:48:36 +1100 [thread overview]
Message-ID: <457E1884.6050501@rftechnology.com.au> (raw)
In-Reply-To: <457E0D11.1010802@rftechnology.com.au>
Found solution:
immap->im_intctl.ic_siexr |= (1 << (14 - (irq - SIU_INT_IRQ1)));
Makes it trigger on falling edge
Dmytro Bablinyuk wrote:
> 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?
next prev parent reply other threads:[~2006-12-12 2:47 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 [this message]
2006-12-12 8:02 ` Laurent Pinchart
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=457E1884.6050501@rftechnology.com.au \
--to=dmytro.bablinyuk@rftechnology$(echo .)com.au \
--cc=linuxppc-embedded@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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