]> 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)
commitb777a496ad26add944703c23c162cf6c4ea2dadb
tree5bd0b96a3d29cd06e11ab65cc1a541ffd0fda775
parent3858b18660f54802e84b272f468296659c6833f8
parentdc2d5202df7c1ad8074937ff9ecaafc897e5cfea
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.