summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2014-12-04 15:07:32 +0200
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:25:41 -0700
commit62649ebdb6dd7a6e4b558dcfd23b32212ff685e7 (patch)
tree25662b0f71ebffc7411d81e3d4103bba3a5d1fbd /include
parent7a2c9513a1690947f568453f6977a96b62c8c2e6 (diff)
mmc: core: interrupt Background Operations if it takes too long
Currently we have 4 mins timeout for the blocking BKOPs to complete but we have seen instances where card is surprisingly taking even longer time to complete background operations. If card doesn't complete the BKOPs within specified timeout, we will send the HPI command to interrupt the ongoing BKOPs. Change-Id: I5df81bdfd9b19bee30a394ee0ff4390b292691d0 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> [merez@codeaurora.org: fix conflicts due to changes in 3.14] Signed-off-by: Maya Erez <merez@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmc/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h
index 0c2f98ba1d84..ba296ab25899 100644
--- a/include/linux/mmc/core.h
+++ b/include/linux/mmc/core.h
@@ -67,6 +67,8 @@ struct mmc_command {
unsigned int busy_timeout; /* busy detect timeout in ms */
/* Set this flag only for blocking sanitize request */
bool sanitize_busy;
+ /* Set this flag only for blocking bkops request */
+ bool bkops_busy;
struct mmc_data *data; /* data segment associated with cmd */
struct mmc_request *mrq; /* associated request */