Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374216
b: refs/heads/master
c: 20adee8
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann committed Apr 19, 2013
1 parent 608aa12 commit 2e9fa99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 863a08dc8bc7ce32ecc9136671610a93a0dd68b1
refs/heads/master: 20adee8fa06ef69012bc277739e9e3762c78b7b7
13 changes: 6 additions & 7 deletions trunk/drivers/irqchip/exynos-combiner.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
static DEFINE_SPINLOCK(irq_controller_lock);

struct combiner_chip_data {
unsigned int irq_offset;
unsigned int hwirq_offset;
unsigned int irq_mask;
void __iomem *base;
unsigned int parent_irq;
Expand Down Expand Up @@ -80,11 +80,11 @@ static void combiner_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
if (status == 0)
goto out;

combiner_irq = __ffs(status);
combiner_irq = chip_data->hwirq_offset + __ffs(status);
cascade_irq = irq_find_mapping(combiner_irq_domain, combiner_irq);

cascade_irq = combiner_irq + (chip_data->irq_offset & ~31);
if (unlikely(cascade_irq >= NR_IRQS))
do_bad_IRQ(cascade_irq, desc);
if (unlikely(!cascade_irq))
do_bad_IRQ(irq, desc);
else
generic_handle_irq(cascade_irq);

Expand Down Expand Up @@ -129,8 +129,7 @@ static void __init combiner_init_one(struct combiner_chip_data *combiner_data,
void __iomem *base, unsigned int irq)
{
combiner_data->base = base;
combiner_data->irq_offset = irq_find_mapping(
combiner_irq_domain, combiner_nr * IRQ_IN_COMBINER);
combiner_data->hwirq_offset = (combiner_nr & ~3) * IRQ_IN_COMBINER;
combiner_data->irq_mask = 0xff << ((combiner_nr % 4) << 3);
combiner_data->parent_irq = irq;

Expand Down

0 comments on commit 2e9fa99

Please sign in to comment.