Commit 069b24f2 authored by Shengjiu Wang's avatar Shengjiu Wang Committed by Mark Brown

ASoC: fsl_easrc: Don't use devm_regmap_init_mmio_clk

When there is power domain bind with mem clock,

The call flow:
devm_regmap_init_mmio_clk
  - clk_prepare()
      - clk_pm_runtime_get()

cause the power domain of clock always be enabled after
regmap_init(). which impact the power consumption.

So use devm_regmap_init_mmio instead of
devm_regmap_init_mmio_clk,but explicitly enable
clock when it is used.
Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1616579928-22428-5-git-send-email-shengjiu.wang@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent cab04ab5
...@@ -1896,8 +1896,7 @@ static int fsl_easrc_probe(struct platform_device *pdev) ...@@ -1896,8 +1896,7 @@ static int fsl_easrc_probe(struct platform_device *pdev)
easrc->paddr = res->start; easrc->paddr = res->start;
easrc->regmap = devm_regmap_init_mmio_clk(dev, "mem", regs, easrc->regmap = devm_regmap_init_mmio(dev, regs, &fsl_easrc_regmap_config);
&fsl_easrc_regmap_config);
if (IS_ERR(easrc->regmap)) { if (IS_ERR(easrc->regmap)) {
dev_err(dev, "failed to init regmap"); dev_err(dev, "failed to init regmap");
return PTR_ERR(easrc->regmap); return PTR_ERR(easrc->regmap);
......
Markdown is supported
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