From: Naveen Kumar Gaddipati Date: Mon, 25 Jun 2012 07:34:36 +0000 (-0700) Subject: Input: nomadik-ske-keypad - get rid of multiple interrupts X-Git-Tag: v3.6-rc1~95^2^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84b63ad8477c822edbeb1e310b201609f33522ec;p=pandora-kernel.git Input: nomadik-ske-keypad - get rid of multiple interrupts The keypad could cause multiple interrupts to be fired in succession since we weren't waiting for the IRQs to clear properly in the interrupt handler. We wait for a number of bus iterations (the readl():s from the peripheral bus will stall, so these are quite long) before giving up on getting keys ready to read, then we sleep until the IRQ is deasserted (this is OK since the interrupt is threaded). Also use the debounce platform data for another hardcoded wait loop. Signed-off-by: Naveen Kumar Gaddipati Reviewed-by: Rikard Olsson Reviewed-by: Srinidhi Kasagar Signed-off-by: Linus Walleij Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed