]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: rt5677: Mark reg RT5677_PWR_ANLG2 as volatile
authorBen Zhang <benzh@chromium.org>
Wed, 6 Nov 2019 01:13:30 +0000 (17:13 -0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:58:30 +0000 (23:58 -0500)
commit3d4088c5e212c7db9af0dab82bfaeee83ac2590b
tree4feaa72bc0b5d21346f78b86a929b9943266d27f
parent2d16f14c1a7c6012034359f7ad491ccb01907ccd
ASoC: rt5677: Mark reg RT5677_PWR_ANLG2 as volatile

BugLink: https://bugs.launchpad.net/bugs/1860490
[ Upstream commit eabf424f7b60246c76dcb0ea6f1e83ef9abbeaa6 ]

The codec dies when RT5677_PWR_ANLG2(MX-64h) is set to 0xACE1
while it's streaming audio over SPI. The DSP firmware turns
on PLL2 (MX-64 bit 8) when SPI streaming starts.  However regmap
does not believe that register can change by itself. When
BST1 (bit 15) is turned on with regmap_update_bits(), it doesn't
read the register first before write, so PLL2 power bit is
cleared by accident.

Marking MX-64h as volatile in regmap solved the issue.

Signed-off-by: Ben Zhang <benzh@chromium.org>
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20191106011335.223061-6-cujomalainey@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/codecs/rt5677.c