]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: ak4642: Enable cache usage to fix crashes on resume
authorMark Brown <broonie@kernel.org>
Wed, 18 May 2016 17:30:39 +0000 (18:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:18:47 +0000 (18:18 -0700)
commit72f67f5546ea86c557e24fcde454a71d8b1d0042
treeebc3da6087bdc082b769077a066ec7159f5f3432
parent866e26f1283d71f416def70a831cb136d24ec54e
ASoC: ak4642: Enable cache usage to fix crashes on resume

commit d3030d11961a8c103cf07aed59905276ddfc06c2 upstream.

The ak4642 driver is using a regmap cache sync to restore the
configuration of the chip on resume but (as Peter observed) 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.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/ak4642.c