Skip to content

Commit 50bfcf2

Browse files
Nicolin Chenbroonie
authored andcommitted
ASoC: wm8962: Turn on regcache_cache_only before disabling regulator
It's safer to turn on regcache_cache_only before disabling regulator since the driver will turn off the regcache_cache_only after enabling regulator. If we remain cache_only false, some command like 'amixer cset' would get failure if being run before wm8962_resume(). Signed-off-by: Nicolin Chen <b42378@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org> Cc: stable@vger.kernel.org
1 parent 9645083 commit 50bfcf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/codecs/wm8962.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3720,6 +3720,8 @@ static int wm8962_i2c_probe(struct i2c_client *i2c,
37203720
if (ret < 0)
37213721
goto err_enable;
37223722

3723+
regcache_cache_only(wm8962->regmap, true);
3724+
37233725
/* The drivers should power up as needed */
37243726
regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies);
37253727

0 commit comments

Comments
 (0)