summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKonstantin Dorfman <kdorfman@codeaurora.org>2015-12-31 14:45:48 +0200
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:28:14 -0700
commit5c8d7435461c642e7d807e474bf11a6de1e9c052 (patch)
tree4b771e9570c718f760da1d57316c9a8a7b083e1c /include/linux
parent127468f48283a1d8c782af7ebb68e9a9ce613d1f (diff)
mmc: core: postpone runtime suspend in case BKOPS is required
Some devices require long BKOPs time in order to provide high performance. In the current solution, the host disables auto BKOPs or stops manual BKOPs in runtime suspend, regardless of the device need for BKOPs. This patch adds a check for device BKOPs status and defers suspend in case when BKOPs need. CRs-Fixed: 979630 Change-Id: Ib38d1ce58e4195d4969e9a367b5738c8e598d0ba Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org> [subhashj@codeaurora.org: fixed merge conflicts] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmc/card.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index d88f6a027679..0f0c9963950e 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -327,7 +327,8 @@ struct mmc_bkops_stats {
struct mmc_bkops_info {
struct mmc_bkops_stats stats;
bool needs_check;
- bool needs_manual;
+ bool needs_bkops;
+ u32 retry_counter;
};
enum mmc_pon_type {