diff options
| author | Ritesh Harjani <riteshh@codeaurora.org> | 2015-11-25 10:37:21 +0530 |
|---|---|---|
| committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:27:54 -0700 |
| commit | 3aeae55f8a7688f88c952f84921337e8577d8ccc (patch) | |
| tree | fd0c45deb7bcd6b3a00d8aaa0ef8ff6a13f85032 /include/linux | |
| parent | a1cc4ebee231f22f72bb0140710f08185fd45d3a (diff) | |
mmc: sdhci: Add asynchronous interrupt support for sdio cards
SD host controller have asynchronous interrupt support
capability to detect card(sdio) interrupt
even when clocks are gated(to save power).
This patch add support and enable this capability/feature to
of SD host controllers for sdio cards.
Change-Id: Ic1945355a19ebfdb3bd000bf8138d8001cea53f6
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
[subhashj@codeaurora.org: fixed merge conflicts & compilatione error]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mmc/host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 6dd6add52d64..e6dd9eb4ead4 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -683,6 +683,12 @@ static inline int mmc_boot_partition_access(struct mmc_host *host) return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); } +static inline bool mmc_card_and_host_support_async_int(struct mmc_host *host) +{ + return ((host->caps2 & MMC_CAP2_ASYNC_SDIO_IRQ_4BIT_MODE) && + (host->card->cccr.async_intr_sup)); +} + static inline int mmc_host_uhs(struct mmc_host *host) { return host->caps & |
