]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sgtl5000: Reset the CHIP_CLK_CTRL reg on remove
authorDetlev Casanova <detlev.casanova@collabora.com>
Thu, 10 Nov 2022 19:06:12 +0000 (14:06 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 10 Nov 2022 19:43:43 +0000 (19:43 +0000)
commitd90cb151081880a9ee3c6efe3e54a2ced38e6f5d
treea2d81043c747b1c6f393faa004e6739930603742
parent001ce1829e6fe849e18c89e453959757fdfcd0e1
ASoC: sgtl5000: Reset the CHIP_CLK_CTRL reg on remove

Since commit 4aa9a74a7f12 ("ASoC: sgtl5000: Fix noise on shutdown/remove"),
the device power control registers are reset when the driver is
removed/shutdown.

This is an issue when the device is configured to use the PLL clock. The
device will stop responding if it is still configured to use the PLL
clock but the PLL clock is powered down.

When rebooting linux, the probe function will show:
sgtl5000 0-000a: Error reading chip id -11

Make sure that the CHIP_CLK_CTRL is reset to its default value before
powering down the device.

Fixes: 4aa9a74a7f12 ("ASoC: sgtl5000: Fix noise on shutdown/remove")
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20221110190612.1341469-1-detlev.casanova@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sgtl5000.c