From 99b730eb035d2f1057f558928471c8b78d56371e Mon Sep 17 00:00:00 2001 From: Asutosh Das Date: Thu, 23 Apr 2015 09:55:43 +0530 Subject: mmc: block: add support for partition switch There could be a switch of partition while RPMB access. RPMB thread would then hand-off the control to mmc-cmdq-thread in the following state: - partition set to RPMB in card - CMDQ mode disabled in card - Controller in halt state When the next request is received, the following has to be done - switch partition to the current partition - enable CMDQ in card - unhalt controller Change-Id: I9eca350572fd88476dfee9642696a223c5cd7ada Signed-off-by: Asutosh Das Signed-off-by: Venkat Gopalakrishnan [subhashj@codeaurora.org: fixed compilation error] Signed-off-by: Subhash Jadavani --- include/linux/mmc/card.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index e7fdaff68d7e..609a792e9e5c 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -594,6 +594,8 @@ static inline int mmc_card_broken_irq_polling(const struct mmc_card *c) #define mmc_card_id(c) (dev_name(&(c)->dev)) #define mmc_dev_to_card(d) container_of(d, struct mmc_card, dev) +#define mmc_get_drvdata(c) dev_get_drvdata(&(c)->dev) +#define mmc_set_drvdata(c,d) dev_set_drvdata(&(c)->dev, d) /* * MMC device driver (e.g., Flash card, I/O card...) -- cgit v1.2.3