* [PATCH 8/9] pcf50633: Use disable_irq_nosync() from within irq handlers.
@ 2009-04-16 5:55 Ben Nizette
0 siblings, 0 replies; only message in thread
From: Ben Nizette @ 2009-04-16 5:55 UTC (permalink / raw)
To: sameo; +Cc: 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/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c
index 7793932..11a6248 100644
--- a/drivers/mfd/pcf50633-core.c
+++ b/drivers/mfd/pcf50633-core.c
@@ -443,7 +443,7 @@ static irqreturn_t pcf50633_irq(int irq, void *data)
dev_dbg(pcf->dev, "pcf50633_irq\n");
get_device(pcf->dev);
- disable_irq(pcf->irq);
+ disable_irq_nosync(pcf->irq);
schedule_work(&pcf->irq_work);
return IRQ_HANDLED;
--
1.6.0.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-16 5:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 5:55 [PATCH 8/9] pcf50633: Use disable_irq_nosync() from within irq handlers Ben Nizette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox