summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorRitesh Harjani <riteshh@codeaurora.org>2015-09-28 15:55:01 +0530
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:28:04 -0700
commitbbd570a9b13e15b7b16034157b67f464f88f9546 (patch)
treec7d70b2c8f4d73ea451843552c81bfeb0faa9e79 /include/linux/mmc
parent84de99e1ded4e96ac36c2287b7d9e4b9cdd8dcc4 (diff)
mmc: core: cmdq helper for reset and claim host context
This patch does following- This adds an API(mmc_cmdq_hw_reset), for RESET_ALL of SDHCI, power cycle mmc card and reintialize it, which enables cmdq as well(if supported). This acquires claim_host before calling mmc_power_restore. mmc_power_restore should be called with claim_host acquired, since this function is required from non-claim-host context in cmdq error handling. Change-Id: I31c4449dead1d4ad4e10a4822cce2298ec5fb4b6 Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org> [subhashj@codeaurora.org: fixed merge conflicts, dropped some changes related to mmc_do_hw_reset] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h
index 8b5197ba6759..89efaa67cc59 100644
--- a/include/linux/mmc/core.h
+++ b/include/linux/mmc/core.h
@@ -191,6 +191,7 @@ extern int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen);
extern int mmc_set_blockcount(struct mmc_card *card, unsigned int blockcount,
bool is_rel_write);
extern int mmc_hw_reset(struct mmc_host *host);
+extern int mmc_cmdq_hw_reset(struct mmc_host *host);
extern int mmc_can_reset(struct mmc_card *card);
extern void mmc_set_data_timeout(struct mmc_data *, const struct mmc_card *);