Skip to content

RFC mmc: core: Provide CMD5 awake and partial_init support

Ritesh Harjani linux-arm-msm linux-devicetree linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Documentation: mmc: add mmc-sleep-awakeDocumentation/devicetree/bindings/mmc/mmc.txt+2 -01 reply
2/4mmc: core: add mmc-sleep-awake capsdrivers/mmc/core/host.c include/linux/mmc/host.h+3 -00 replies
3/4mmc: mmc: add support for CMD5 awakedrivers/mmc/core/mmc.c+21 -50 replies
4/4mmc: core: Implement mmc_partial_init during resumedrivers/mmc/core/core.c drivers/mmc/core/core.h drivers/mmc/core/mmc.c +2 more+150 -22 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] mmc: core: Provide CMD5 awake and partial_init support

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(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
a Linux Foundation Collaborative Project.