[RFC PATCH v2 0/4] Init runtime PM support for dw_mmc

Shawn Lin shawn.lin at rock-chips.com
Fri Sep 30 01:48:33 PDT 2016


Hi Jaehoon and Ulf,

This a patchset going to support runtime PM for dw_mmc.
Basically it is a prototype design with some redundant
code there. But I think it's okay to send it out for sure
I am not heading in the wrong direction.

For v2, it could support to disable biu_clk and power-off genpd
if we find the gpio cd is used.



Shawn Lin (4):
  mmc: dw_mmc: add runtime PM callback
  mmc: dw_mmc-rockchip: add runtime PM support
  mmc: core: expose the capability of gpio card detect
  mmc: dw_mmc-rockchip: disable biu clk and genpd if possible

 drivers/mmc/core/slot-gpio.c       |  8 +++++
 drivers/mmc/host/dw_mmc-rockchip.c | 73 ++++++++++++++++++++++++++++++++++++--
 drivers/mmc/host/dw_mmc.c          | 60 +++++++++++++++++++++++++++++--
 drivers/mmc/host/dw_mmc.h          |  4 ++-
 include/linux/mmc/slot-gpio.h      |  1 +
 5 files changed, 140 insertions(+), 6 deletions(-)

-- 
2.3.7





More information about the Linux-rockchip mailing list