ASoC: fsl_sai: Don't use devm_regmap_init_mmio_clk
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 19 Mar 2021 08:06:43 +0000 (16:06 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 22 Mar 2021 12:32:21 +0000 (12:32 +0000)
commit2277e7e36b4b8c27eb8d2fb33a20440bc800c2d7
tree469feeafad04e753a118aaa22156a4c1bfa057de
parent7e71b48f9e27e437ca523432ea285c2585a539dc
ASoC: fsl_sai: Don't use devm_regmap_init_mmio_clk

When there is power domain bind with bus 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, then explicitly enable clock when
using by pm_runtime_get(), if CONFIG_PM=n, then
fsl_sai_runtime_resume will be explicitly called.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Link: https://lore.kernel.org/r/1616141203-13344-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c