summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-25 13:00:12 +0100
committerChris Ball <chris@printf.net>2014-05-22 08:33:30 -0400
commitda91a8f9c0f56d75b35bfe2e2456187ab55b3639 (patch)
tree0b1eb88167d37461dc1d9aa56919f715e61095b1 /include/linux/mmc
parent24fbb3ca1468861e5ac33a26c4130610ae8d0e20 (diff)
downloadop-kernel-dev-da91a8f9c0f56d75b35bfe2e2456187ab55b3639.zip
op-kernel-dev-da91a8f9c0f56d75b35bfe2e2456187ab55b3639.tar.gz
mmc: sdhci: track whether preset mode is currently enabled in hardware
Track whether preset mode is currently enabled in hardware, and use that when making decisions elsewhere in the code rather than reading the register and checking the bit. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/sdhci.h b/include/linux/mmc/sdhci.h
index 7f3efba..08abe99 100644
--- a/include/linux/mmc/sdhci.h
+++ b/include/linux/mmc/sdhci.h
@@ -143,6 +143,7 @@ struct sdhci_host {
bool runtime_suspended; /* Host is runtime suspended */
bool bus_on; /* Bus power prevents runtime suspend */
+ bool preset_enabled; /* Preset is enabled */
struct mmc_request *mrq; /* Current request */
struct mmc_command *cmd; /* Current command */
OpenPOWER on IntegriCloud