diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-25 13:00:12 +0100 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-05-22 08:33:30 -0400 |
commit | da91a8f9c0f56d75b35bfe2e2456187ab55b3639 (patch) | |
tree | 0b1eb88167d37461dc1d9aa56919f715e61095b1 /include/linux | |
parent | 24fbb3ca1468861e5ac33a26c4130610ae8d0e20 (diff) | |
download | linux-stable-da91a8f9c0f56d75b35bfe2e2456187ab55b3639.tar.gz linux-stable-da91a8f9c0f56d75b35bfe2e2456187ab55b3639.tar.bz2 linux-stable-da91a8f9c0f56d75b35bfe2e2456187ab55b3639.zip |
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')
-rw-r--r-- | include/linux/mmc/sdhci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/sdhci.h b/include/linux/mmc/sdhci.h index 7f3efbab8732..08abe9941884 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 */ |