Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28089
b: refs/heads/master
c: 37f2e4b
h: refs/heads/master
i:
  28087: 26a4b43
v: v3
  • Loading branch information
Andrew Victor authored and Russell King committed Jun 19, 2006
1 parent 4b5d5e5 commit 1f07033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10e8e1fb758eed5cfb0cae1b770f842624851e7b
refs/heads/master: 37f2e4bc120bd784e7f69f961233e1c16b74d170
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-at91rm9200/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type)
{
unsigned int smr, srctype;

/* change triggering only for FIQ and external IRQ0..IRQ6 */
if ((irq < AT91_ID_IRQ0) && (irq != AT91_ID_FIQ))
return -EINVAL;

switch (type) {
case IRQT_HIGH:
srctype = AT91_AIC_SRCTYPE_HIGH;
Expand All @@ -104,9 +100,13 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type)
srctype = AT91_AIC_SRCTYPE_RISING;
break;
case IRQT_LOW:
if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */
return -EINVAL;
srctype = AT91_AIC_SRCTYPE_LOW;
break;
case IRQT_FALLING:
if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */
return -EINVAL;
srctype = AT91_AIC_SRCTYPE_FALLING;
break;
default:
Expand Down

0 comments on commit 1f07033

Please sign in to comment.