[PATCH v12 0/6] mmc: core: Keep the card powered across suspend when firmware needs it live

From: Kamal Dasu

Date: Wed Nov 11 2026 - 14:51:25 EST


Background: on brcmstb boards with a Kioxia 016G01 eMMC, firmware accesses the
card directly during resume from Suspend-to-DRAM, before the kernel's own
resume path runs, in order to load boot code using hard wired logic that is not
field updatable. The card needs to stay powered and responsive for that access
to succeed, and since it is never power-cycled, it also needs to be reset
before the kernel reuses it after resume.

v11: https://lore.kernel.org/linux-mmc/20261030181034.3811225-1-kamal.dasu@xxxxxxxxxxxx/

Changes in v12:
- Patch 4: Added Shawn Lin's Reviewed-by.
- Patch 6: Moved the check for reset-card-at-resume without
keep-power-in-suspend from mmc_of_parse() to mmc_validate_host_caps(),
so that the host probe fails on such a misconfiguration instead of only
warning (Ulf).
- Patch 6: Propagate the error from _mmc_hw_reset() in mmc_resume(),
instead of always returning 0 (reported by Sashiko).

Kamal Dasu (2):
dt-bindings: mmc: Extend keep-power-in-suspend beyond SDIO
dt-bindings: mmc: Add reset-card-at-resume property

Ulf Hansson (4):
mmc: core: Add option to keep an eMMC powered on at system suspend
mmc: core: Split sdio_set_host_pm_flags()
mmc: core: Move and split reset functions for eMMC
mmc: core: Add support for resetting an eMMC at system resume

.../bindings/mmc/mmc-controller-common.yaml | 10 +-
drivers/mmc/core/core.c | 10 ++
drivers/mmc/core/core.h | 1 +
drivers/mmc/core/host.c | 17 +++
drivers/mmc/core/mmc.c | 109 ++++++++++++------
drivers/mmc/core/sdio_io.c | 7 +-
include/linux/mmc/host.h | 1 +
7 files changed, 112 insertions(+), 43 deletions(-)