diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2020-03-06 19:38:42 +0530 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-03-24 14:39:52 +0100 |
commit | 0ffa6cfbd94982e6c028a8924b06a96c1b91bed8 (patch) | |
tree | 9fd32396a669ab2a3715a9d6afbc55754103e021 /drivers/mmc/host/cqhci.h | |
parent | 1a91a36aba9c232c73e4a5fce038147f5d29e566 (diff) | |
download | linux-0ffa6cfbd94982e6c028a8924b06a96c1b91bed8.tar.gz linux-0ffa6cfbd94982e6c028a8924b06a96c1b91bed8.tar.bz2 linux-0ffa6cfbd94982e6c028a8924b06a96c1b91bed8.zip |
mmc: cqhci: Add cqhci_deactivate()
Host controllers can reset CQHCI either directly or as a consequence of
host controller reset. Add cqhci_deactivate() which puts the CQHCI
driver into a state that is consistent with that.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Link: https://lore.kernel.org/r/1583503724-13943-2-git-send-email-vbadigan@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/cqhci.h')
-rw-r--r-- | drivers/mmc/host/cqhci.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mmc/host/cqhci.h b/drivers/mmc/host/cqhci.h index def76e9b5cac..437700179de4 100644 --- a/drivers/mmc/host/cqhci.h +++ b/drivers/mmc/host/cqhci.h @@ -230,7 +230,11 @@ irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int cmd_error, int data_error); int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64); struct cqhci_host *cqhci_pltfm_init(struct platform_device *pdev); -int cqhci_suspend(struct mmc_host *mmc); +int cqhci_deactivate(struct mmc_host *mmc); +static inline int cqhci_suspend(struct mmc_host *mmc) +{ + return cqhci_deactivate(mmc); +} int cqhci_resume(struct mmc_host *mmc); #endif |