Skip to content

RFC mmc: sdio: To support hibernation add capability to skip SDIO reset at scan

Adrian Hunter linux-acpi linux-mmc linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mmc: sdio: Keep card runtime resumed while adding function devicesdrivers/mmc/core/sdio.c+10 -12 replies
2/4mmc: sdio: Add capability to skip SDIO reset at scandrivers/mmc/core/core.c include/linux/mmc/host.h+6 -110 replies
3/4mmc: sdhci-acpi: Set MMC_CAP2_NO_SDIO_RESET if child has wake from S4 (hibernate)drivers/mmc/host/sdhci-acpi.c+16 -13 replies
4/4mmc: sdhci-pci: Set MMC_CAP2_NO_SDIO_RESET if child has wake from S4 (hibernate)drivers/mmc/host/sdhci-pci-core.c+34 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/4] mmc: sdio: To support hibernation add capability to skip SDIO reset at scan

Hi

Before a hibernation image can be restored, the system must boot which might result in the mmc core performing a SDIO reset on any SDIO cards. That is a problem if the state of the SDIO function is to be preserved. The patches here contrive to avoid that SDIO reset.

The first patch is a general improvement which avoids unnecessary runtime suspend / resume, and therefore also SDIO reset.

The second patch adds a new capability to void SDIO reset at rescan time.

The final patches select the new capability based on whether there is an ACPI child node with a _S4W method which is used to infer that the device (SDIO function) is capable of waking the system from S4 (hibernation).

This patch set is sent as RFC and any feedback on this approach would be appreciated.

Adrian Hunter (4):
mmc: sdio: Keep card runtime resumed while adding function devices
mmc: sdio: Add capability to skip SDIO reset at scan
mmc: sdhci-acpi: Set MMC_CAP2_NO_SDIO_RESET if child has wake from S4 (hibernate)
mmc: sdhci-pci: Set MMC_CAP2_NO_SDIO_RESET if child has wake from S4 (hibernate)

 drivers/mmc/core/core.c           |  6 +++++-
 drivers/mmc/core/sdio.c           | 11 ++++++++++-
 drivers/mmc/host/sdhci-acpi.c     | 17 ++++++++++++++++-
 drivers/mmc/host/sdhci-pci-core.c | 34 ++++++++++++++++++++++++++++++++++
 include/linux/mmc/host.h          |  1 +
 5 files changed, 66 insertions(+), 3 deletions(-)

Regards
Adrian