summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorBen Nizette <bn@niasdigital.com>2009-04-17 20:35:58 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-04-17 20:42:06 -0700
commit3deb649e654ff87b87de9e415ac43ca8afbdff07 (patch)
treed4945843d93093636e74413894ac3451bd7314a5 /drivers/input
parent29fa98bd9b50b5e9c17d99e961640ffafb765d71 (diff)
downloadop-kernel-dev-3deb649e654ff87b87de9e415ac43ca8afbdff07.zip
op-kernel-dev-3deb649e654ff87b87de9e415ac43ca8afbdff07.tar.gz
Input: ucb1400 - use disable_irq_nosync() in irq handler
disable_irq() waits 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> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/ucb1400_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c
index e868264..f100c7f 100644
--- a/drivers/input/touchscreen/ucb1400_ts.c
+++ b/drivers/input/touchscreen/ucb1400_ts.c
@@ -256,7 +256,7 @@ static irqreturn_t ucb1400_hard_irq(int irqnr, void *devid)
struct ucb1400_ts *ucb = devid;
if (irqnr == ucb->irq) {
- disable_irq(ucb->irq);
+ disable_irq_nosync(ucb->irq);
ucb->irq_pending = 1;
wake_up(&ucb->ts_wait);
return IRQ_HANDLED;
OpenPOWER on IntegriCloud