Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 00/19] ASoC: codecs: propagate regcache_sync() failures
@ 2026-07-04  3:48 Pengpeng Hou
  2026-07-04  3:49 ` [PATCH 01/19] ASoC: codecs: lpass-rx-macro: Propagate regcache_sync() errors Pengpeng Hou
                   ` (18 more replies)
  0 siblings, 19 replies; 24+ messages in thread
From: Pengpeng Hou @ 2026-07-04  3:48 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown
  Cc: Srinivas Kandagatla, Jaroslav Kysela, Takashi Iwai, linux-sound,
	linux-arm-msm, linux-kernel, Oder Chiou, Shenghao Ding, Kevin Lu,
	Baojun Xu, David Rhodes, Richard Fitzgerald, patches,
	Bartosz Golaszewski, Kuninori Morimoto, Charles Keepax,
	Sebastian Krzyszkowiak, Shengjiu Wang, Sharique Mohammad,
	Pengpeng Hou

Several ASoC codec resume and reattach paths replay cached register
state with regcache_sync() after power loss, reset, runtime resume, or
SoundWire reattach. These paths currently drop regcache_sync() failures
and can report success even when cached register state was not written
back to hardware.

Propagate regcache_sync() failures from the reviewed paths and restore
cache-only/dirty state or unwind resources before returning errors. Most
patches are local resume-path error propagation. Four patches also close
failure-path issues that were held during earlier review: rt1320-sdw
restores both regmaps, rt5682-sdw restores first-init cache state,
max98396 unwinds supplies acquired during resume, and max98090 is limited
to the runtime-resume path with the stronger paired suspend/resume proof.

This series is source-audited only. I did not test on the affected
hardware.

Pengpeng Hou (19):
  ASoC: codecs: lpass-rx-macro: Propagate regcache_sync() errors
  ASoC: codecs: lpass-tx-macro: Propagate regcache_sync() errors
  ASoC: codecs: lpass-wsa-macro: Propagate regcache_sync() errors
  ASoC: codecs: max98373: Propagate regcache_sync() errors
  ASoC: codecs: max98388: Propagate regcache_sync() errors
  ASoC: codecs: rt1318-sdw: Propagate regcache_sync() errors
  ASoC: codecs: rt9120: Propagate regcache_sync() errors
  ASoC: codecs: tas2552: Propagate regcache_sync() errors
  ASoC: codecs: tas2783-sdw: Propagate regcache_sync() errors
  ASoC: codecs: wcd938x-sdw: Propagate regcache_sync() errors
  ASoC: codecs: cs35l32: Propagate regcache_sync() errors
  ASoC: codecs: wm2200: Propagate regcache_sync() errors
  ASoC: codecs: wm5100: Propagate regcache_sync() errors
  ASoC: codecs: wm8962: Propagate regcache_sync() errors
  ASoC: codecs: cs4349: Propagate regcache_sync() errors
  ASoC: codecs: rt1320-sdw: Propagate regcache_sync() errors
  ASoC: codecs: rt5682-sdw: Propagate regcache_sync() errors
  ASoC: codecs: max98396: Unwind supplies on resume failure
  ASoC: codecs: max98090: Propagate runtime regcache_sync() errors

 sound/soc/codecs/cs35l32.c         | 10 +++++++++-
 sound/soc/codecs/cs4349.c          |  8 +++++++-
 sound/soc/codecs/lpass-rx-macro.c  | 31 +++++++++++++++++++++---------
 sound/soc/codecs/lpass-tx-macro.c  | 25 +++++++++++++++++-------
 sound/soc/codecs/lpass-wsa-macro.c | 28 ++++++++++++++++++++-------
 sound/soc/codecs/max98090.c        |  8 +++++++-
 sound/soc/codecs/max98373-i2c.c    |  9 ++++++++-
 sound/soc/codecs/max98388.c        |  8 +++++++-
 sound/soc/codecs/max98396.c        | 24 ++++++++++++++++++++---
 sound/soc/codecs/rt1318-sdw.c      |  7 ++++++-
 sound/soc/codecs/rt1320-sdw.c      | 17 ++++++++++++++--
 sound/soc/codecs/rt5682-sdw.c      | 20 +++++++++++++++++--
 sound/soc/codecs/rt9120.c          |  9 ++++++++-
 sound/soc/codecs/tas2552.c         | 10 +++++++++-
 sound/soc/codecs/tas2783-sdw.c     | 16 +++++++++++++--
 sound/soc/codecs/wcd938x-sdw.c     |  8 +++++++-
 sound/soc/codecs/wm2200.c          | 10 +++++++++-
 sound/soc/codecs/wm5100.c          | 10 +++++++++-
 sound/soc/codecs/wm8962.c          |  9 ++++++++-
 19 files changed, 223 insertions(+), 44 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2026-07-06 12:37 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-04  3:48 [PATCH 00/19] ASoC: codecs: propagate regcache_sync() failures Pengpeng Hou
2026-07-04  3:49 ` [PATCH 01/19] ASoC: codecs: lpass-rx-macro: Propagate regcache_sync() errors Pengpeng Hou
2026-07-04  3:50 ` [PATCH 02/19] ASoC: codecs: lpass-tx-macro: " Pengpeng Hou
2026-07-04  3:51 ` [PATCH 03/19] ASoC: codecs: lpass-wsa-macro: " Pengpeng Hou
2026-07-04  3:52 ` [PATCH 04/19] ASoC: codecs: max98373: " Pengpeng Hou
2026-07-04  3:53 ` [PATCH 05/19] ASoC: codecs: max98388: " Pengpeng Hou
2026-07-04  3:54 ` [PATCH 06/19] ASoC: codecs: rt1318-sdw: " Pengpeng Hou
2026-07-04  3:55 ` [PATCH 07/19] ASoC: codecs: rt9120: " Pengpeng Hou
2026-07-04  3:57 ` [PATCH 08/19] ASoC: codecs: tas2552: " Pengpeng Hou
2026-07-04  3:57 ` [PATCH 09/19] ASoC: codecs: tas2783-sdw: " Pengpeng Hou
2026-07-04  3:58 ` [PATCH 10/19] ASoC: codecs: wcd938x-sdw: " Pengpeng Hou
2026-07-04  3:59 ` [PATCH 11/19] ASoC: codecs: cs35l32: " Pengpeng Hou
2026-07-04  4:00 ` [PATCH 12/19] ASoC: codecs: wm2200: " Pengpeng Hou
2026-07-06  9:00   ` Richard Fitzgerald
2026-07-04  4:01 ` [PATCH 13/19] ASoC: codecs: wm5100: " Pengpeng Hou
2026-07-04  4:02 ` [PATCH 14/19] ASoC: codecs: wm8962: " Pengpeng Hou
2026-07-06  9:11   ` Richard Fitzgerald
2026-07-06 12:37     ` Mark Brown
2026-07-04  4:03 ` [PATCH 15/19] ASoC: codecs: cs4349: " Pengpeng Hou
2026-07-06  9:03   ` Richard Fitzgerald
2026-07-04  4:04 ` [PATCH 16/19] ASoC: codecs: rt1320-sdw: " Pengpeng Hou
2026-07-04  4:05 ` [PATCH 17/19] ASoC: codecs: rt5682-sdw: " Pengpeng Hou
2026-07-04  4:06 ` [PATCH 18/19] ASoC: codecs: max98396: Unwind supplies on resume failure Pengpeng Hou
2026-07-04  4:07 ` [PATCH 19/19] ASoC: codecs: max98090: Propagate runtime regcache_sync() errors Pengpeng Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox