Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: SOF/soundwire: use resume_and_get on component probe
@ 2022-06-16 21:08 Pierre-Louis Bossart
  2022-06-16 21:08 ` [PATCH 1/2] ASoC: SOF: pcm: use pm_resume_and_get() " Pierre-Louis Bossart
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Pierre-Louis Bossart @ 2022-06-16 21:08 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, vkoul, broonie, Pierre-Louis Bossart

While testing driver bind/unbind sequences, I stumbled on a corner
case where the SoundWire bus can be suspended before the ASoC card
registration happens. During the registration, register accesses would
then lead to timeouts. This does not happen in regular usages where
the card registration happens within the 3-second time window before
suspend.

Adding a simple pm_runtime_resume_and_get() on component probe solves
the issue, but experiments showed it was too invasive to add at the
ASoC core level, with multiple regressions reported by our CI.

This patchset limits the additional resume to the SOF and SoundWire
codec drivers. An additional patch for the soundwire/intel component
will be sent separately.

Pierre-Louis Bossart (2):
  ASoC: SOF: pcm: use pm_resume_and_get() on component probe
  ASoC: codecs: soundwire: call pm_runtime_resume() in component probe

 sound/soc/codecs/max98373.c   | 14 +++++++++++++-
 sound/soc/codecs/rt1308-sdw.c | 12 ++++++++++++
 sound/soc/codecs/rt1316-sdw.c | 12 ++++++++++++
 sound/soc/codecs/rt700.c      |  5 +++++
 sound/soc/codecs/rt711-sdca.c |  5 +++++
 sound/soc/codecs/rt711.c      |  5 +++++
 sound/soc/codecs/rt715-sdca.c | 12 ++++++++++++
 sound/soc/codecs/rt715.c      | 12 ++++++++++++
 sound/soc/sof/pcm.c           | 11 +++++++++++
 9 files changed, 87 insertions(+), 1 deletion(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-06-18  0:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16 21:08 [PATCH 0/2] ASoC: SOF/soundwire: use resume_and_get on component probe Pierre-Louis Bossart
2022-06-16 21:08 ` [PATCH 1/2] ASoC: SOF: pcm: use pm_resume_and_get() " Pierre-Louis Bossart
2022-06-16 21:08 ` [PATCH 2/2] ASoC: codecs: soundwire: call pm_runtime_resume() in " Pierre-Louis Bossart
2022-06-17  9:44   ` Mark Brown
2022-06-17 14:35     ` Pierre-Louis Bossart
2022-06-17 17:37       ` Mark Brown
2022-06-17 18:54         ` Pierre-Louis Bossart
2022-06-17 19:05           ` Pierre-Louis Bossart
2022-06-17 20:12             ` Pierre-Louis Bossart
2022-06-18  0:46 ` [PATCH 0/2] ASoC: SOF/soundwire: use resume_and_get on " Mark Brown

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