ASoC: fsl_sai: Refine regcache usage with pm runtime
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 29 Jun 2020 06:42:33 +0000 (14:42 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 16:21:02 +0000 (17:21 +0100)
commitd8d702e19e997cf3f172487e0659d0e68aa5ede5
treea139aaffe9efe451324dd89505919d54e45faf12
parent351cf7445f009d7c4edcecdaf7cdee8f33046164
ASoC: fsl_sai: Refine regcache usage with pm runtime

When there is dedicated power domain bound with device, after probing
the power will be disabled, then registers are not accessible in
fsl_sai_dai_probe(), so regcache only need to be enabled in end of
probe() and regcache_mark_dirty should be moved to pm runtime resume
callback function.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/1593412953-10897-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c