Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 160967
b: refs/heads/master
c: 8c81b52
h: refs/heads/master
i:
  160965: d0204ab
  160963: 324dd00
  160959: c5e90e5
v: v3
  • Loading branch information
Alessandro Rubini authored and Russell King committed Jul 2, 2009
1 parent e9c92f4 commit c29b6c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 87e8824b4588076409692b82ef4b1d98f25cd400
refs/heads/master: 8c81b52422147b4b09f5adb8d0c6963342a336c6
11 changes: 10 additions & 1 deletion trunk/arch/arm/common/vic.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
#include <asm/mach/irq.h>
#include <asm/hardware/vic.h>

static void vic_ack_irq(unsigned int irq)
{
void __iomem *base = get_irq_chip_data(irq);
irq &= 31;
writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
/* moreover, clear the soft-triggered, in case it was the reason */
writel(1 << irq, base + VIC_INT_SOFT_CLEAR);
}

static void vic_mask_irq(unsigned int irq)
{
void __iomem *base = get_irq_chip_data(irq);
Expand Down Expand Up @@ -253,7 +262,7 @@ static inline void vic_pm_register(void __iomem *base, unsigned int irq, u32 arg

static struct irq_chip vic_chip = {
.name = "VIC",
.ack = vic_mask_irq,
.ack = vic_ack_irq,
.mask = vic_mask_irq,
.unmask = vic_unmask_irq,
.set_wake = vic_set_wake,
Expand Down

0 comments on commit c29b6c3

Please sign in to comment.