]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF/soundwire: use resume_and_get on component probe
authorMark Brown <broonie@kernel.org>
Sat, 18 Jun 2022 00:46:19 +0000 (01:46 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 18 Jun 2022 00:46:19 +0000 (01:46 +0100)
commit08e3e9bda936d7f0d396586a8a6fdbd10db44001
tree5bd0b96a3d29cd06e11ab65cc1a541ffd0fda775
parent07d67ad30f64a256c2c31076f6ca6b13d9214834
parentc8e8b10e4afc78703309e5baa2c05f8a386de57b
ASoC: SOF/soundwire: use resume_and_get on component probe

Merge series from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:

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.