Commit ac1e25c8 authored by Niklas Söderlund's avatar Niklas Söderlund Committed by Ulf Hansson
Browse files

mmc: tmio: enable module clock before resetting when resuming

On runtime power management resume, the host clock needs to be
enabled before calling tmio_mmc_reset. If the mmc device has a power
domain entry, the host clock is enabled via genpd_runtime_resume,
running before tmio_mmc_host_runtime_resume. If the mmc device has no
power domain entry, however, genpd_runtime_resume is not called. This
patch changes tmio_mmc_host_runtime_resume to enable the host clock
before calling tmio_mmc_reset.

Based on work from Masaharu Hayakawa.

Signed-off-by: default avatarNiklas Söderlund <>
Tested-by: default avatarWolfram Sang <>
Reviewed-by: default avatarWolfram Sang <>
Reviewed-by: default avatarMasahiro Yamada <>
Reviewed-by: default avatarSimon Horman <>
Signed-off-by: default avatarUlf Hansson <>
parent b0715f04
......@@ -1326,8 +1326,8 @@ int tmio_mmc_host_runtime_resume(struct device *dev)
struct tmio_mmc_host *host = dev_get_drvdata(dev);
if (host->clk_cache)
host->set_clock(host, host->clk_cache);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment