All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] mmc: core: Let the mmc_bus handle suspend|resume sequence
@ 2013-05-30 12:53 Ulf Hansson
  2013-05-30 12:53 ` [PATCH 1/4] mmc: core: Remove unnecessary check for the remove callback Ulf Hansson
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Ulf Hansson @ 2013-05-30 12:53 UTC (permalink / raw)
  To: linux-mmc, Chris Ball; +Cc: Ulf Hansson

From: Ulf Hansson <ulf.hansson@linaro.org>

The MMC/SD/SDIO cards are registered on the mmc_bus and should from a power
management perspective be controlled from there. As of today each and every
host driver needs to issue mmc_suspend|resume_host from their respective
.suspend|resume methods, which seems like an unnecessary requirement to
put on them.

This patch set moves the responsiblity to suspend the cards into the mmc_bus.
In this patch set, the mmc_suspend|resume_host functions are not removed, but
will instead always return successful. As a separate patch build on top of
this patch set, we shall remove the API:s together with updating each and
every host driver.

Ulf Hansson (4):
  mmc: core: Remove unnecessary check for the remove callback
  mmc: core: Validate suspend prerequisites for SDIO at SUSPEND_PREPARE
  mmc: core: Push common suspend|resume code into each bus_ops
  mmc: core: Initiate suspend|resume from mmc bus instead of mmc host

 drivers/mmc/core/bus.c  |   28 ++++++++++++++-
 drivers/mmc/core/core.c |   87 ++++++++---------------------------------------
 drivers/mmc/core/core.h |    1 +
 drivers/mmc/core/mmc.c  |    4 +++
 drivers/mmc/core/sd.c   |    4 +++
 drivers/mmc/core/sdio.c |   48 +++++++++++++++++++++++---
 6 files changed, 94 insertions(+), 78 deletions(-)

-- 
1.7.10


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

end of thread, other threads:[~2013-06-04  9:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 12:53 [PATCH 0/4] mmc: core: Let the mmc_bus handle suspend|resume sequence Ulf Hansson
2013-05-30 12:53 ` [PATCH 1/4] mmc: core: Remove unnecessary check for the remove callback Ulf Hansson
2013-05-31  7:43   ` Jaehoon Chung
2013-05-31  8:11     ` Ulf Hansson
2013-05-31  8:22       ` Jaehoon Chung
2013-05-31  9:33         ` Ulf Hansson
2013-05-31 10:50           ` Jaehoon Chung
2013-05-31 15:05             ` Ulf Hansson
2013-05-30 12:53 ` [PATCH 2/4] mmc: core: Validate suspend prerequisites for SDIO at SUSPEND_PREPARE Ulf Hansson
2013-05-30 12:53 ` [PATCH 3/4] mmc: core: Push common suspend|resume code into each bus_ops Ulf Hansson
2013-05-30 12:53 ` [PATCH 4/4] mmc: core: Initiate suspend|resume from mmc bus instead of mmc host Ulf Hansson
2013-06-04  5:28   ` Jaehoon Chung
2013-06-04  8:34     ` Ulf Hansson
2013-06-04  8:47       ` Jaehoon Chung
2013-06-04  8:57         ` Ulf Hansson
2013-06-04  9:53 ` [PATCH 0/4] mmc: core: Let the mmc_bus handle suspend|resume sequence Jaehoon Chung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.