]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdio: avoid spurious calls to interrupt handlers
authorNicolas Pitre <nicolas.pitre@linaro.org>
Mon, 16 Apr 2012 23:16:54 +0000 (19:16 -0400)
committerChris Ball <cjb@laptop.org>
Sun, 22 Apr 2012 15:17:28 +0000 (11:17 -0400)
commit4052107f9a2e6b45749bf5e5328755466ca3b60f
treea55ffe74b967001e3f52cc331a65974415470a45
parent5838a915dc8a8b24c6ac596c911d99cb3202a8ba
mmc: sdio: avoid spurious calls to interrupt handlers

Commit cf486b2ec2 ("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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio.c
drivers/mmc/core/sdio_irq.c
include/linux/mmc/host.h