Skip to content

RFC mmc: Add clock scaling support for mmc driver

Ram Prakash Gupta linux-devicetree linux-mmc lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mmc: core: Parse clk scaling dt entriesdrivers/mmc/core/host.c include/linux/mmc/card.h include/linux/mmc/host.h+136 -00 replies
2/6mmc: core: Add core scaling support in driverdrivers/mmc/core/core.c drivers/mmc/core/core.h drivers/mmc/core/mmc.c +1 more+1032 -00 replies
3/6mmc: core: Initialize clk scaling for mmc and SDCarddrivers/mmc/core/block.c drivers/mmc/core/core.c drivers/mmc/core/host.c +3 more+119 -60 replies
4/6mmc: core: Add debugfs entries for scaling supportdrivers/mmc/core/debugfs.c drivers/mmc/core/host.c+243 -00 replies
5/6mmc: sdhci-msm: Add capability in platform hostdrivers/mmc/host/sdhci-msm.c+2 -00 replies
6/6dt-bindings: mmc: sdhci-msm: Add clk scaling dt parametersDocumentation/devicetree/bindings/mmc/sdhci-msm.txt+19 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/6] mmc: Add clock scaling support for mmc driver

This change adds the use of devfreq based clock scaling to MMC. This applicable for eMMC and SDCard.
For some workloads, such as video playback, it isn't necessary for these cards to run at high speed. Running at lower frequency, in such cases can still meet the deadlines for data transfers.

Scaling down the clock frequency dynamically has power savings not only because the bus is running at lower frequency but also has an advantage of scaling down the system core voltage, if supported. Provide an ondemand clock scaling support similar to the cpufreq ondemand governor having two thresholds, up_threshold and down_threshold to decide whether to increase the frequency or scale it down respectively as per load.

Ram Prakash Gupta (6):
mmc: core: Parse clk scaling dt entries
mmc: core: Add core scaling support in driver
mmc: core: Initialize clk scaling for mmc and SDCard
mmc: core: Add debugfs entries for scaling support
mmc: sdhci-msm: Add capability in platfrom host
dt-bindings: mmc: sdhci-msm: Add clk scaling dt parameters

 .../devicetree/bindings/mmc/sdhci-msm.txt          |  19 +
 drivers/mmc/core/block.c                           |  19 +-
 drivers/mmc/core/core.c                            | 777 +++++++++++++++++++++
 drivers/mmc/core/core.h                            |  17 +
 drivers/mmc/core/debugfs.c                         |  90 +++
 drivers/mmc/core/host.c                            | 226 ++++++
 drivers/mmc/core/mmc.c                             | 246 ++++++-
 drivers/mmc/core/queue.c                           |   2 +
 drivers/mmc/core/sd.c                              |  84 ++-
 drivers/mmc/host/sdhci-msm.c                       |   2 +
 include/linux/mmc/card.h                           |   7 +
 include/linux/mmc/host.h                           |  66 ++
 12 files changed, 1550 insertions(+), 5 deletions(-)
Signature · 1 line
1.9.1