Skip to content

Commit

Permalink
ASoC: wm8962: mark cache_dirty flag after software reset in pm_resume
Browse files Browse the repository at this point in the history
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: Jiada Wang <jiada_wang@mentor.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jiada Wang authored and Mark Brown committed Oct 22, 2015
1 parent 6ff33f3 commit 4eb0f7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 4eb0f7a

Please sign in to comment.