]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: use pm_runtime_resume_and_get() when possible
authorMark Brown <broonie@kernel.org>
Tue, 28 Jun 2022 10:30:10 +0000 (11:30 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 28 Jun 2022 10:30:10 +0000 (11:30 +0100)
commitbfe28257228b438b2c5eb198cc805629c5893a41
treeb5f449b820075515206a3402ed41a7668e075533
parenta5f42345f0f75db51b8a958d7a9d1f1b6e71c87c
parent063c594f5e1979622ac93e2e882dd4482f0d4be5
ASoC: use pm_runtime_resume_and_get() when possible

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

After a set of SOF-specific changes, this patchset correct problematic
uses of pm_runtime_get_sync() in ASoC, or simplifies the flow with no
functional changes. Two patches for Intel platforms also add a test on
resume success.

Additional changes were initially suggested to completely remove the
use of pm_runtime_get_sync(). These changes were dropped since they
are way too invasive, specifically in cases where the return values
were not tested, which would lead to duplicate pm_runtime_put(). The
remaining uses of pm_runtime_get_sync() cannot really be blindly
modified without context and knowledge of each driver.