Message ID | 20190626202229.16312-4-ranjani.sridharan@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | SOF PM and jack detection fixes | expand |
diff --git a/sound/soc/sof/sof-pci-dev.c b/sound/soc/sof/sof-pci-dev.c index ffe485f4ba71..3e3ee9c9aefd 100644 --- a/sound/soc/sof/sof-pci-dev.c +++ b/sound/soc/sof/sof-pci-dev.c @@ -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); }