mmc: sdio: avoid spurious calls to interrupt handlers
commit591c8732fb7d28b5a5d1299bf8822f3880efaa47
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 16 Apr 2012 23:16:54 +0000 (16 19:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:53 +0000 (1 15:15 +0800)
tree532cc152d2159f2d13b4d303ed4899c63d556fe3
parentfd1a48fe1d6813c141c890541951fcb54b0f20d7
mmc: sdio: avoid spurious calls to interrupt handlers

commit bbbc4c4d8c5face097d695f9bf3a39647ba6b7e7 upstream.

Commit 06e8935feb ("optimized SDIO IRQ handling for single irq")
introduced some spurious calls to SDIO function interrupt handlers,
such as when the SDIO IRQ thread is started, or the safety check
performed upon a system resume.  Let's add a flag to perform the
optimization only when a real interrupt is signaled by the host
driver and we know there is no point confirming it.

Reported-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sdio.c
drivers/mmc/core/sdio_irq.c
include/linux/mmc/host.h