OSDN Git Service

ASoC: ak4613: Enable cache usage to fix crashes on resume
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 16 Jun 2016 12:34:30 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:41:36 +0000 (07:41 -0800)
commitf629104427a6dc9ab20dc10424896777a2bbe506
tree54287c8429c6df563591e7eb68da7c0e0bb2de1a
parent1c84d14eb7f4cefe455facae6b1ac06e7841db56
ASoC: ak4613: Enable cache usage to fix crashes on resume

[ Upstream commit dcd2d1f78664fdc75eadaaf65257834e24383d01 ]

During system resume:

    kernel BUG at drivers/base/regmap/regcache.c:347!
    ...
    PC is at regcache_sync+0x1c/0x128
    LR is at ak4613_resume+0x28/0x34

The ak4613 driver is using a regmap cache sync to restore the
configuration of the chip on resume but does not actually define a
register cache which means that the resume is never going to work and we
trigger asserts in regmap.  Fix this by enabling caching.

Based on commit d3030d11961a8c10 ("ASoC: ak4642: Enable cache usage to
fix crashes on resume") by Mark Brown <broonie@kernel.org>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/ak4613.c