All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 9/9] omap mmc host: Use disable_irq_nosync() from within irq handlers.
@ 2009-04-16  5:55 Ben Nizette
  2009-04-26 19:21 ` Pierre Ossman
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Nizette @ 2009-04-16  5:55 UTC (permalink / raw)
  To: linux-omap; +Cc: pierre, linux-kernel


disable_irq() should wait for all running handlers to complete
before returning.  As such, if it's used to disable an interrupt
from that interrupt's handler it will deadlock.  This replaces
the dangerous instances with the _nosync() variant which doesn't
have this problem.

Signed-off-by: Ben Nizette <bn@niasdigital.com>
---
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c
index 5570849..d5ea652 100644
--- a/drivers/mmc/host/omap.c
+++ b/drivers/mmc/host/omap.c
@@ -824,7 +824,7 @@ static irqreturn_t mmc_omap_irq(int irq, void *dev_id)
 		del_timer(&host->cmd_abort_timer);
 		host->abort = 1;
 		OMAP_MMC_WRITE(host, IE, 0);
-		disable_irq(host->irq);
+		disable_irq_nosync(host->irq);
 		schedule_work(&host->cmd_abort_work);
 		return IRQ_HANDLED;
 	}
-- 
1.6.0.2




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

end of thread, other threads:[~2009-05-22 12:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16  5:55 [PATCH 9/9] omap mmc host: Use disable_irq_nosync() from within irq handlers Ben Nizette
2009-04-26 19:21 ` Pierre Ossman
2009-05-14 17:22   ` Tony Lindgren
2009-05-22 12:00     ` Pierre Ossman

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.