From: Ben Nizette Date: Sat, 18 Apr 2009 03:35:58 +0000 (-0700) Subject: Input: ucb1400 - use disable_irq_nosync() in irq handler X-Git-Tag: accepted/tizen/common/20141203.182822~15906^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3deb649e654ff87b87de9e415ac43ca8afbdff07;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Dmitry Torokhov --- 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;