Re: [PATCH 1/9] ASoC: nau8821: stop resume when cache sync fails
From: Mark Brown
Date: Tue Sep 08 2026 - 07:46:37 EST
On Sun, Sep 06, 2026 at 11:43:13AM +0800, Pengpeng Hou wrote:
> nau8821_resume() restores cached registers during component resume but
> ignores a regcache_sync() failure and continues with IRQ enablement.
> Those operations assume that the codec register state has already been
> restored.
> regcache_cache_only(nau8821->regmap, false);
> - regcache_sync(nau8821->regmap);
> + ret = regcache_sync(nau8821->regmap);
> + if (ret)
> + return ret;
This leaves the cache in write through mode which is probably going to
be a bad time.
Attachment:
signature.asc
Description: PGP signature