OSDN Git Service

ASoC: cs42l42: Reset and power-down on remove() and failed probe()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 26 Oct 2021 12:57:21 +0000 (13:57 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 26 Oct 2021 13:31:09 +0000 (14:31 +0100)
commit6cb725b8a5cc7b9106d5d6dd5d2ca78c76913775
tree70faf3a317740d1d13a231cb300155a4535fbcd4
parent1198ff12cbdd5f42c032cba1d96ebc7af8024cf9
ASoC: cs42l42: Reset and power-down on remove() and failed probe()

Driver remove() should assert RESET and disable the supplies.

probe() fail was disabling supplies but it didn't assert reset or
put the codec into a power-down state.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211026125722.10220-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c