All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: fix a bug in the asic3 irq demux code
@ 2008-07-02 17:42 Philipp Zabel
  2008-07-02 17:53 ` Andrew Morton
  2008-07-03  9:25 ` Samuel Ortiz
  0 siblings, 2 replies; 8+ messages in thread
From: Philipp Zabel @ 2008-07-02 17:42 UTC (permalink / raw)
  To: LKML; +Cc: Andrew Morton, Samuel Ortiz

Wrong irq numbers were given to desc->handle_irq, which
on some devices caused endless loops (asic3_irq_demux
calling itself, basically).

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
---
 drivers/mfd/asic3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c
index 8e41130..59ec9c6 100644
--- a/drivers/mfd/asic3.c
+++ b/drivers/mfd/asic3.c
@@ -308,7 +308,7 @@ static void asic3_irq_demux(unsigned int irq, struct irq_desc *desc)
 		for (i = ASIC3_NUM_GPIOS; i < ASIC3_NR_IRQS; i++) {
 			/* They start at bit 4 and go up */
 			if (status & (1 << (i - ASIC3_NUM_GPIOS + 4))) {
-				desc = irq_desc +  + i;
+				desc = irq_desc + asic->irq_base + i;
 				desc->handle_irq(asic->irq_base + i,
 						 desc);
 			}
-- 
1.5.6



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-07-03 12:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 17:42 [PATCH] mfd: fix a bug in the asic3 irq demux code Philipp Zabel
2008-07-02 17:53 ` Andrew Morton
2008-07-02 18:22   ` Samuel Ortiz
2008-07-02 18:57     ` Andrew Morton
2008-07-02 21:18       ` Samuel Ortiz
2008-07-02 18:59     ` Andrew Morton
2008-07-02 21:20       ` Samuel Ortiz
2008-07-03  9:25 ` Samuel Ortiz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.