Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30c48413 authored by Can Guo's avatar Can Guo
Browse files

mmc: core: Enable card detect IRQ wake if host needs it



After aquire card detect IRQ, try to enable the IRQ wake if it is valid and
host is capable of MMC_CAP_CD_WAKE.

Change-Id: I6195f38fb6cc9eb1fc22fe9d9fcbff966f6d3650
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 3225a4fe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -172,6 +172,10 @@ void mmc_gpiod_request_cd_irq(struct mmc_host *host)

	if (irq < 0)
		host->caps |= MMC_CAP_NEEDS_POLL;
	ret = mmc_gpio_set_cd_wake(host, true);
	if (ret)
		dev_err(mmc_dev(host), "%s: enabling cd irq wake failed ret=%d\n",
				      __func__, ret);
}
EXPORT_SYMBOL(mmc_gpiod_request_cd_irq);