Revert "Revert "mmc: sdio: optimized SDIO IRQ handling for single irq""

This reverts commit 6e611f2b8655684f578cb975fa0ebfd031b45d69.

CRs-fixed: 363705
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
(cherry picked from commit c49bee55cf610a74b635c3480e97b6b9aaf885e6)

Change-Id: Ifc9d0c5d200bf2043054526f00a3c54af4e8eca1
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
mmc: sdio: avoid spurious calls to interrupt handlers

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.

CRs-fixed: 363705
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>
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
(cherry picked from commit fed14d9343eaf05e2412eedd09cbd9de9c272acd)

Change-Id: I8a80a30d14ab16d80994d13e0ed08644cc52047c
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>