ASoC: codecs: rt712-sdca-sdw: Propagate regcache_sync() errors

rt712_sdca_dev_resume() clears cache-only mode for both regmaps and
replays cached register state. Both regcache_sync() calls currently
ignore their return values.

Check both sync operations, return the first error, and restore both
regmaps to cache-only/dirty state on failure.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260704073646.33065-1-pengpeng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Pengpeng Hou 2026-07-04 15:36:46 +08:00 • committed by Mark Brown
commit ba8c728e75
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0