linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] mmc: sdio: To support hibernation add capability to skip SDIO reset at scan
@ 2017-04-21 10:08 Adrian Hunter
  2017-04-21 10:08 ` [PATCH RFC 1/4] mmc: sdio: Keep card runtime resumed while adding function devices Adrian Hunter
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Adrian Hunter @ 2017-04-21 10:08 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: linux-mmc, linux-pm, linux-acpi, Rafael J. Wysocki

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

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-04-25 19:11 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 10:08 [PATCH RFC 0/4] mmc: sdio: To support hibernation add capability to skip SDIO reset at scan Adrian Hunter
2017-04-21 10:08 ` [PATCH RFC 1/4] mmc: sdio: Keep card runtime resumed while adding function devices Adrian Hunter
2017-04-24 21:03   ` Ulf Hansson
2017-04-25  6:41     ` Adrian Hunter
2017-04-21 10:08 ` [PATCH RFC 2/4] mmc: sdio: Add capability to skip SDIO reset at scan Adrian Hunter
2017-04-24 20:33   ` Ulf Hansson
2017-04-25  6:21     ` Adrian Hunter
2017-04-25  7:52       ` Ulf Hansson
2017-04-25  7:57         ` Adrian Hunter
2017-04-25 10:46           ` Ulf Hansson
2017-04-25 11:20             ` Adrian Hunter
2017-04-25 12:24               ` Ulf Hansson
2017-04-25 12:45                 ` Adrian Hunter
2017-04-25 18:51                   ` Grygorii Strashko
2017-04-25 19:11                     ` Adrian Hunter
2017-04-21 10:08 ` [PATCH RFC 3/4] mmc: sdhci-acpi: Set MMC_CAP2_NO_SDIO_RESET if child has wake from S4 (hibernate) Adrian Hunter
2017-04-24 21:52   ` Rafael J. Wysocki
2017-04-25  7:28     ` Adrian Hunter
2017-04-25 11:05       ` Rafael J. Wysocki
2017-04-21 10:08 ` [PATCH RFC 4/4] mmc: sdhci-pci: " Adrian Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).