]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ASoC: soc-component: using pm_runtime_resume_and_get instead of pm_runtime_ge...
authorPeter Ujfalusi <peter.ujfalusi@gmail.com>
Tue, 4 Oct 2022 11:51:21 +0000 (14:51 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 4 Oct 2022 13:09:30 +0000 (14:09 +0100)
commit09b11d6d35ed55cfc201b98aacbd4b0fe5beaae3
treeb638ad936be93d8c0eec356ec5f46ca3c4c73d2a
parent2f1fd72ff937bedccc8b4dbc1293055664b7b0b0
Revert "ASoC: soc-component: using pm_runtime_resume_and_get instead of pm_runtime_get_sync"

This reverts commit 24707385c42d0447f732a38499c0c8a3c9e64584.

The reverted commit causes the following warnigs:
Runtime PM usage count underflow!

This is due to the fact that the pm_runtime_resume_and_get() is calling
pm_runtime_put_noidle() in case of < 0 return value of
pm_runtime_get_sync() which includes the -EACCES.
The change is wrong as -EACCES is returned in case of 'nested' get_sync()
and it is a valid use of PM runtime.

Fixes: 24707385c42d ("ASoC: soc-component: using pm_runtime_resume_and_get instead of pm_runtime_get_sync")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20221004115121.26180-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-component.c