mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
soundwire: intel_auxdevice: use pm_runtime_resume() instead of pm_request_resume()
We need to wait for each child to fully resume. pm_request_resume() is asynchronous, what we need is to wait synchronously to avoid race conditions. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20240410023438.487017-3-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
62707b56b2
commit
6f4867fa57
1 changed files with 4 additions and 4 deletions
|
|
@ -454,9 +454,9 @@ static int intel_resume_child_device(struct device *dev, void *data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ret = pm_request_resume(dev);
|
||||
ret = pm_runtime_resume(dev);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "%s: pm_request_resume failed: %d\n", __func__, ret);
|
||||
dev_err(dev, "%s: pm_runtime_resume failed: %d\n", __func__, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -499,9 +499,9 @@ static int __maybe_unused intel_pm_prepare(struct device *dev)
|
|||
* first resume the device for this link. This will also by construction
|
||||
* resume the PCI parent device.
|
||||
*/
|
||||
ret = pm_request_resume(dev);
|
||||
ret = pm_runtime_resume(dev);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "%s: pm_request_resume failed: %d\n", __func__, ret);
|
||||
dev_err(dev, "%s: pm_runtime_resume failed: %d\n", __func__, ret);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue