From: Liam Girdwood Date: Fri, 16 May 2014 13:55:20 +0000 (+0300) Subject: ASoC: max98090: Fix reset at resume time X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=25b4ab430f8e166c9b63f4db28e7e812d5a59396;p=openwrt%2Fstaging%2Fblogic.git ASoC: max98090: Fix reset at resume time Reset needs to wait 20ms before other codec IO is performed. This wait was not being performed. Fix this by making sure the reset register is not restored with the cache, but use the manual reset method in resume with the wait. Signed-off-by: Liam Girdwood Signed-off-by: Jarkko Nikula Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 7980784d1e33..be86094817eb 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -255,6 +255,7 @@ static struct reg_default max98090_reg[] = { static bool max98090_volatile_register(struct device *dev, unsigned int reg) { switch (reg) { + case M98090_REG_SOFTWARE_RESET: case M98090_REG_DEVICE_STATUS: case M98090_REG_JACK_STATUS: case M98090_REG_REVISION_ID: @@ -2374,6 +2375,8 @@ static int max98090_runtime_resume(struct device *dev) regcache_cache_only(max98090->regmap, false); + max98090_reset(max98090); + regcache_sync(max98090->regmap); return 0;