All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: max98373: Mark cache dirty before entering sleep
@ 2021-09-24 22:13 Ryan Lee
  2021-09-27 14:54 ` Pierre-Louis Bossart
  0 siblings, 1 reply; 32+ messages in thread
From: Ryan Lee @ 2021-09-24 22:13 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, yung-chuan.liao,
	pierre-louis.bossart, guennadi.liakhovetski, alsa-devel,
	linux-kernel
  Cc: sathya.prakash.m.r, ryan.lee.maxim, Ryan Lee

Amp lose its register values in case amp power loss or
'ForceReset' over Soundwire SCP_ctrl register(0x0044) or
HW_RESET pin control during the audio suspend and resume.
Mark cache dirty before audio suspension to restore
existing values when audio resume.

Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
---
 sound/soc/codecs/max98373-sdw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/max98373-sdw.c b/sound/soc/codecs/max98373-sdw.c
index dc520effc61c..a7e4a6e880b0 100644
--- a/sound/soc/codecs/max98373-sdw.c
+++ b/sound/soc/codecs/max98373-sdw.c
@@ -259,6 +259,7 @@ static __maybe_unused int max98373_suspend(struct device *dev)
 		regmap_read(max98373->regmap, max98373->cache[i].reg, &max98373->cache[i].val);
 
 	regcache_cache_only(max98373->regmap, true);
+	regcache_mark_dirty(max98373->regmap);
 
 	return 0;
 }
-- 
2.17.1


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

end of thread, other threads:[~2021-09-30 23:54 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 22:13 [PATCH] ASoC: max98373: Mark cache dirty before entering sleep Ryan Lee
2021-09-27 14:54 ` Pierre-Louis Bossart
2021-09-27 16:01   ` [EXTERNAL] " Ryan Lee
2021-09-27 16:01     ` Ryan Lee
2021-09-27 16:06     ` Mark Brown
2021-09-27 16:06       ` Mark Brown
2021-09-27 16:48       ` Pierre-Louis Bossart
2021-09-27 16:48         ` Pierre-Louis Bossart
2021-09-27 17:10         ` Mark Brown
2021-09-27 17:10           ` Mark Brown
2021-09-27 17:23           ` Pierre-Louis Bossart
2021-09-27 17:23             ` Pierre-Louis Bossart
2021-09-27 17:29             ` Mark Brown
2021-09-27 17:29               ` Mark Brown
2021-09-28 16:43             ` Ryan Lee
2021-09-28 16:43               ` Ryan Lee
2021-09-28 18:15               ` Pierre-Louis Bossart
2021-09-28 18:15                 ` Pierre-Louis Bossart
2021-09-27 18:44         ` Ryan Lee
2021-09-27 18:44           ` Ryan Lee
2021-09-27 19:34           ` Pierre-Louis Bossart
2021-09-27 19:34             ` Pierre-Louis Bossart
2021-09-27 22:43             ` Ryan Lee
2021-09-27 22:43               ` Ryan Lee
2021-09-30  6:21             ` Ryan Lee
2021-09-30  6:21               ` Ryan Lee
2021-09-30 13:29               ` Pierre-Louis Bossart
2021-09-30 13:29                 ` Pierre-Louis Bossart
2021-09-30 23:31               ` Ryan Lee
2021-09-30 23:31                 ` Ryan Lee
2021-09-30 23:53                 ` Pierre-Louis Bossart
2021-09-30 23:53                   ` Pierre-Louis Bossart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.