mmc: core: Add support for SDIO wakeup interrupt
authorAxe Yang <axe.yang@mediatek.com>
Tue, 26 Jul 2022 06:28:41 +0000 (14:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 26 Jul 2022 14:58:31 +0000 (16:58 +0200)
commit019e442bb0d5e7f25ada8eb4252e22e62d17a95e
tree7c6757688498fdf2a640ed3f042e74b6cfa3c75f
parent035cc3951797df0e1e831f9fd71b7cda63e71705
mmc: core: Add support for SDIO wakeup interrupt

If wakeup-source flag is set in host dts node, parse EAI information
from SDIO CCCR interrupt externsion segment for in-band wakeup. If
async interrupt is supported by SDIO card then enable it and set
enable_async_irq flag in sdio_cccr structure to 1. The parse flow is
implemented in sdio_read_cccr().

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Axe Yang <axe.yang@mediatek.com>
Link: https://lore.kernel.org/r/20220726062842.18846-3-axe.yang@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio.c
include/linux/mmc/card.h
include/linux/mmc/sdio.h