summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-25 12:56:01 +0100
committerChris Ball <chris@printf.net>2014-05-22 07:26:26 -0400
commitb537f94ce19583de1882f539a5cc49aa99260aca (patch)
tree80e6672bfec0bc5f97f1f30537e939c766b78dcd /include/linux/mmc
parentbe138554a7923658ded799b0e8794d9c1d08a6e5 (diff)
downloadop-kernel-dev-b537f94ce19583de1882f539a5cc49aa99260aca.zip
op-kernel-dev-b537f94ce19583de1882f539a5cc49aa99260aca.tar.gz
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 f1c8e14..9361d8e 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 */
OpenPOWER on IntegriCloud