summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorRussell King2014-04-25 13:56:01 +0200
committerChris Ball2014-05-22 13:26:26 +0200
commitb537f94ce19583de1882f539a5cc49aa99260aca (patch)
tree80e6672bfec0bc5f97f1f30537e939c766b78dcd /include/linux/mmc
parentmmc: sdhci: allow sdio interrupts while sdhci runtime suspended (diff)
downloadkernel-qcow2-linux-b537f94ce19583de1882f539a5cc49aa99260aca.tar.gz
kernel-qcow2-linux-b537f94ce19583de1882f539a5cc49aa99260aca.tar.xz
kernel-qcow2-linux-b537f94ce19583de1882f539a5cc49aa99260aca.zip
mmc: sdhci: more efficient interrupt enable register handling
Rather than wasting cycles read-modify-writing the interrupt enable registers, cache the value locally instead. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-by: Markus Pargmann <mpa@pengutronix.de> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/sdhci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mmc/sdhci.h b/include/linux/mmc/sdhci.h
index f1c8e14e8751..9361d8ef509d 100644
--- a/include/linux/mmc/sdhci.h
+++ b/include/linux/mmc/sdhci.h
@@ -178,6 +178,9 @@ struct sdhci_host {
u32 thread_isr;
+ /* cached registers */
+ u32 ier;
+
wait_queue_head_t buf_ready_int; /* Waitqueue for Buffer Read Ready interrupt */
unsigned int tuning_done; /* Condition flag set when CMD19 succeeds */