Commit 4eb0f7ab authored by Jiada Wang's avatar Jiada Wang Committed by Mark Brown

ASoC: wm8962: mark cache_dirty flag after software reset in pm_resume

By doing software reset of wm8962 in pm_resume, all registers which
have already been set will be reset to default value without regmap
interface be involved, thus driver need to mark cache_dirty flag,
to let regcache can be updated by regcache_sync().
Signed-off-by: default avatarJiada Wang <jiada_wang@mentor.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6ff33f39
......@@ -3804,6 +3804,8 @@ static int wm8962_runtime_resume(struct device *dev)
wm8962_reset(wm8962);
regcache_mark_dirty(wm8962->regmap);
/* SYSCLK defaults to on; make sure it is off so we can safely
* write to registers if the device is declocked.
*/
......
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