Skip to content

Commit

Permalink
Merge remote-tracking branch 'regmap/topic/irq' into regmap-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Nov 28, 2011
2 parents cce585c + d23511f commit c86845d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/base/regmap/regmap-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ static irqreturn_t regmap_irq_thread(int irq, void *d)
u8 *buf8 = data->status_reg_buf;
u16 *buf16 = data->status_reg_buf;
u32 *buf32 = data->status_reg_buf;
bool handled = false;

ret = regmap_bulk_read(map, chip->status_base, data->status_reg_buf,
chip->num_regs);
Expand Down Expand Up @@ -146,10 +147,14 @@ static irqreturn_t regmap_irq_thread(int irq, void *d)
if (data->status_buf[chip->irqs[i].reg_offset] &
chip->irqs[i].mask) {
handle_nested_irq(data->irq_base + i);
handled = true;
}
}

return IRQ_HANDLED;
if (handled)
return IRQ_HANDLED;
else
return IRQ_NONE;
}

/**
Expand Down

0 comments on commit c86845d

Please sign in to comment.