The patch titled input: AD7877 driver fixup has been removed from the -mm tree. Its filename was input-touchscreen-driver-add-support-ad7877-touchscreen-driver-fix.patch This patch was dropped because it was folded into input-touchscreen-driver-add-support-ad7877-touchscreen-driver.patch The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: input: AD7877 driver fixup From: Michael Hennerich <michael.hennerich@xxxxxxxxxx> - Test flag with spinlock hold Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx> Signed-off-by: Bryan Wu <cooloney@xxxxxxxxxx> Cc: Jiri Kosina <jkosina@xxxxxxx> Cc: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/input/touchscreen/ad7877.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff -puN drivers/input/touchscreen/ad7877.c~input-touchscreen-driver-add-support-ad7877-touchscreen-driver-fix drivers/input/touchscreen/ad7877.c --- a/drivers/input/touchscreen/ad7877.c~input-touchscreen-driver-add-support-ad7877-touchscreen-driver-fix +++ a/drivers/input/touchscreen/ad7877.c @@ -388,10 +388,11 @@ static irqreturn_t ad7877_irq(int irq, v * doesn't get issued twice while in work. */ - if (ts->pending) - return IRQ_HANDLED; - spin_lock_irqsave(&ts->lock, flags); + if (ts->pending) { + spin_unlock_irqrestore(&ts->lock, flags); + return IRQ_HANDLED; + } ts->pending = 1; spin_unlock_irqrestore(&ts->lock, flags); @@ -420,10 +421,12 @@ static void ad7877_disable(struct ad7877 { unsigned long flags; - if (ts->disabled) + spin_lock_irqsave(&ts->lock, flags); + if (ts->disabled) { + spin_unlock_irqrestore(&ts->lock, flags); return; + } - spin_lock_irqsave(&ts->lock, flags); ts->disabled = 1; disable_irq(ts->spi->irq); spin_unlock_irqrestore(&ts->lock, flags); @@ -443,10 +446,11 @@ static void ad7877_enable(struct ad7877 { unsigned long flags; - if (!ts->disabled) - return; - spin_lock_irqsave(&ts->lock, flags); + if (ts->disabled) { + spin_unlock_irqrestore(&ts->lock, flags); + return; + } ts->disabled = 0; enable_irq(ts->spi->irq); spin_unlock_irqrestore(&ts->lock, flags); _ Patches currently in -mm which might be from michael.hennerich@xxxxxxxxxx are linux-next.patch input-touchscreen-driver-add-support-ad7877-touchscreen-driver.patch input-touchscreen-driver-add-support-ad7877-touchscreen-driver-fix.patch input-ad7879-touchscreen-driver.patch input-ad7879-touchscreen-driver-cleanup.patch input-ad7879-fix-workaroud-build-error-reported-by-andrew-morton.patch pcmcia-blackfin-fix-bug-add-missing-to-module-macro.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html