public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cbus-retu: Fix nested IRQ handling
@ 2011-02-27 17:17 Michael Buesch
  2011-02-28  8:36 ` Felipe Balbi
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Buesch @ 2011-02-27 17:17 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Felipe Balbi, linux-omap

handle_nested_irq() expects a global IRQ number, so
the irq_base has to be added to the RETU irq number.

Signed-off-by: Michael Buesch <mb@bu3sch.de>

---

Index: linux-omap-2.6/drivers/cbus/retu.c
===================================================================
--- linux-omap-2.6.orig/drivers/cbus/retu.c	2011-02-27 18:12:41.147193710 +0100
+++ linux-omap-2.6/drivers/cbus/retu.c	2011-02-27 18:13:23.383428594 +0100
@@ -205,7 +205,7 @@ static irqreturn_t retu_irq_handler(int
 		return IRQ_NONE;
 	}
 
-	for (i = 0; idr != 0; i++, idr >>= 1) {
+	for (i = retu->irq_base; idr != 0; i++, idr >>= 1) {
 		if (!(idr & 1))
 			continue;
 



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

end of thread, other threads:[~2011-02-28 14:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-27 17:17 [PATCH] cbus-retu: Fix nested IRQ handling Michael Buesch
2011-02-28  8:36 ` Felipe Balbi
2011-02-28 14:16   ` Michael Büsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox