]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: es8311: Check regcache_sync() error in resume
authorHsieh Hung-En <hungen3108@gmail.com>
Wed, 15 Apr 2026 03:02:51 +0000 (11:02 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 16 Apr 2026 12:39:09 +0000 (13:39 +0100)
commit37e9faf21670cf86d36eebc3b4d27afe6819983a
tree8f5de1d2c70bb01f952bb1bbb23167e15c7ab927
parent6e5b0fac1063ba0b3c0e3fe1c605f95a3f45d440
ASoC: es8311: Check regcache_sync() error in resume

The es8311_resume() function currently ignores the return value of
regcache_sync(). If syncing the cache fails, the function still returns
0, leaving the codec in a potentially incorrect state.

Check the return value and propagate it to the ASoC core to ensure
resume failures are properly handled.

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