]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: es8328: Add error unwind in resume
authorHsieh Hung-En <hungen3108@gmail.com>
Fri, 30 Jan 2026 16:00:17 +0000 (00:00 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 2 Feb 2026 12:50:03 +0000 (12:50 +0000)
commit8232e6079ae6f8d3a61d87973cb427385aa469b9
treef5a41350be6cbd0518abee3e3f6708af8871a066
parent9917d99f44231b531a1c704bbbd58059e78c2f59
ASoC: es8328: Add error unwind in resume

Handle failures in the resume path by unwinding previously enabled
resources.

If enabling regulators or syncing the regcache fails, disable regulators
and unprepare the clock to avoid leaking resources and leaving the device
in a partially resumed state.

Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
Link: https://patch.msgid.link/20260130160017.2630-6-hungen3108@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c