summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-05-26 10:34:20 -0300
committerMax Krummenacher <max.krummenacher@toradex.com>2015-12-26 14:50:37 +0100
commitfe9a68aec3b03d8f7793ad0fd8c7299b51821c51 (patch)
tree3c90b8c137abdb225589f8232f5ab6c395047e56 /arch
parent2bc238c55974901ca3078a8e39edaeaa4d9b3d62 (diff)
ASoC: sgtl5000: Fix the cache handling
Since commit e5d80e82e32e (ASoC: sgtl5000: Convert to use regmap directly) a kernel oops is observed after a suspend/resume sequence. The kernel oops happens inside sgtl5000_restore_regs() as codec->reg_cache is no longer a valid pointer. Add the remaining register entries into sgtl5000_reg_defaults[] and remove sgtl5000_restore_regs() completely, which allows suspend/resume to work fine and make the code simpler. Tested on a im53-qsb board. Reported-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Tested-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org> (cherry picked from commit 29aa37cddfb9b721013ff28608200d73a9426368)
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions