linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] mmc: core: Provide CMD5 awake and partial_init support
@ 2017-02-20  8:03 Ritesh Harjani
  2017-02-20  8:03 ` [RFC PATCH 1/4] Documentation: mmc: add mmc-sleep-awake Ritesh Harjani
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Ritesh Harjani @ 2017-02-20  8:03 UTC (permalink / raw)
  To: ulf.hansson, linux-mmc, adrian.hunter
  Cc: shawn.lin, devicetree, andy.gross, linux-arm-msm, georgi.djakov,
	alex.lemberg, mateusz.nowak, Yuliy.Izrailov, asutoshd,
	david.griego, stummala, venkatg, pramod.gurav, jeremymc,
	linux-kernel, Ritesh Harjani

As per JEDEC spec - CMD5 can be used to awake from sleep mode for emmc.
This patch series provide CMD5(awake) + mmc_partial_init support to resume
mmc card device. This is mainly to reduce the resume time.

This was tested on db410c (emmc with HS200 mode) and MS8996 (emmc with HS400ES)
based internal board. This patch reduced the resume time by ~50% on msm8996
and ~11% on db410c.

As of now this patch series provides a caps (MMC_CAP2_SLEEP_AWAKE) to enable this feature.
Since there is no dependency on host platform for this, we can enable this feature by
default as well. Thoughts?


Ritesh Harjani (4):
  Documentation: mmc: add mmc-sleep-awake
  mmc: core: add mmc-sleep-awake caps
  mmc: mmc: add support for CMD5 awake
  mmc: core: Implement mmc_partial_init during resume

 Documentation/devicetree/bindings/mmc/mmc.txt |   2 +
 drivers/mmc/core/core.c                       |  13 +++
 drivers/mmc/core/core.h                       |   1 +
 drivers/mmc/core/host.c                       |   2 +
 drivers/mmc/core/mmc.c                        | 160 ++++++++++++++++++++++++--
 include/linux/mmc/card.h                      |   3 +
 include/linux/mmc/host.h                      |   2 +
 7 files changed, 176 insertions(+), 7 deletions(-)

-- 
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
a Linux Foundation Collaborative Project.

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

end of thread, other threads:[~2017-02-27 19:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-20  8:03 [RFC PATCH 0/4] mmc: core: Provide CMD5 awake and partial_init support Ritesh Harjani
2017-02-20  8:03 ` [RFC PATCH 1/4] Documentation: mmc: add mmc-sleep-awake Ritesh Harjani
2017-02-27 19:04   ` Rob Herring
2017-02-20  8:03 ` [RFC PATCH 2/4] mmc: core: add mmc-sleep-awake caps Ritesh Harjani
2017-02-20  8:03 ` [RFC PATCH 3/4] mmc: mmc: add support for CMD5 awake Ritesh Harjani
2017-02-20  8:03 ` [RFC PATCH 4/4] mmc: core: Implement mmc_partial_init during resume Ritesh Harjani
2017-02-21  7:40   ` Adrian Hunter
2017-02-21 10:51   ` Ulf Hansson
2017-02-20 11:39 ` [RFC PATCH 0/4] mmc: core: Provide CMD5 awake and partial_init support Ulf Hansson
2017-02-20 13:04   ` Ritesh Harjani
2017-02-22  0:55 ` Shawn Lin

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).