mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
ASoC: sof: mark last_busy value at runtime PM init
If last_busy value is not set at runtime PM enable, the device will be suspend immediately after usage counter is 0. Set the last_busy value to make sure delay is working at first boot up. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
parent
2712289a80
commit
ab5d97b897
|
|
@ -232,6 +232,9 @@ static void sof_pci_probe_complete(struct device *dev)
|
|||
*/
|
||||
pm_runtime_allow(dev);
|
||||
|
||||
/* mark last_busy for pm_runtime to make sure not suspend immediately */
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
|
||||
/* follow recommendation in pci-driver.c to decrement usage counter */
|
||||
pm_runtime_put_noidle(dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user