]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8962: set CLOCKING2 as non-volatile register
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 24 Apr 2020 02:01:38 +0000 (10:01 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 24 Apr 2020 10:31:04 +0000 (11:31 +0100)
commit62be034696fff5cf2feed26b125efe38a08c0963
tree505a54af72fd013d78b9e31cfcc6b8e813ae2af5
parent71c7b53fe8b406ac82a6ab4e6cecd462657890d4
ASoC: wm8962: set CLOCKING2 as non-volatile register

Previously CLOCKING2 is set as a volatile register, but cause
issue at suspend & resume, that some bits of CLOCKING2 is not
restored at resume, for example SYSCLK_SRC bits, then the output
clock is wrong.

The volatile property is caused by CLASSD_CLK_DIV bits,
which are controlled by the chip itself. But the datasheet
claims these are read only and protected by the security key,
and they are not read by the driver at all.

So it should be safe to change CLOCKING2 to be non-volatile.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/6d25d5b36d4b9aeb8655b5e947dad52214e34177.1587693523.git.shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8962.c