summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc.h
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2017-01-19 21:07:18 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 13:20:35 +0100
commitee28981535f4261ed5d127ddf4d1a3f8778f520d (patch)
tree9f625e654d1155b004cdf695fd660a0b650a1f18 /drivers/mmc/host/tmio_mmc.h
parentmmc: host: tmio: SDIO_STATUS_QUIRK is rather SDIO_STATUS_SETBITS (diff)
downloadlinux-ee28981535f4261ed5d127ddf4d1a3f8778f520d.tar.xz
linux-ee28981535f4261ed5d127ddf4d1a3f8778f520d.zip
mmc: tmio: discard obsolete SDIO irqs before enabling irqs
Before enabling SDIO irqs, clear the status bit, so we discard old and stale interrupts. Needed to get two wireless cards working. Use the newly introduced macro in all places. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc.h')
-rw-r--r--drivers/mmc/host/tmio_mmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index 9b2284483cdd..2b349d48fb9a 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -91,6 +91,8 @@
#define TMIO_SDIO_STAT_EXWT 0x8000
#define TMIO_SDIO_MASK_ALL 0xc007
+#define TMIO_SDIO_SETBITS_MASK 0x0006
+
/* Define some IRQ masks */
/* This is the mask used at reset by the chip */
#define TMIO_MASK_ALL 0x837f031d