Skip to content
Snippets Groups Projects
Commit 8a3f3165 authored by Allen-KH Cheng's avatar Allen-KH Cheng Committed by Oleksii Kutuzov
Browse files

UPSTREAM: ASoC: SOF: Remove pm_runtime_put_autosuspend() for SOF OF device


In SOF OF device, pm_runtime_put_autosuspend() is not
matching any pm_runtime_get_sync().

This is imbalanced for PM runtime.

Also, for consistency we call pm_runtime_mark_last_busy()
before enabling PM runtime.

1. Remove pm_runtime_put_autosuspend() in probe_complete
2. Reorder PM runtime calls int probe_complete

Change-Id: If6bcee24d1016a8eb47d9e2a48709d2c16d2c60e
Signed-off-by: default avatarAllen-KH Cheng <Allen-KH.Cheng@mediatek.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: default avatarPaul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20211209200830.145005-1-daniel.baluta@oss.nxp.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c5e85e1f
No related branches found
No related tags found
1 merge request!13[UPSTREAM] Add Audio-related patches from Mediatek's Release 24.0
...@@ -77,11 +77,9 @@ static void sof_of_probe_complete(struct device *dev) ...@@ -77,11 +77,9 @@ static void sof_of_probe_complete(struct device *dev)
/* allow runtime_pm */ /* allow runtime_pm */
pm_runtime_set_autosuspend_delay(dev, SND_SOF_SUSPEND_DELAY_MS); pm_runtime_set_autosuspend_delay(dev, SND_SOF_SUSPEND_DELAY_MS);
pm_runtime_use_autosuspend(dev); pm_runtime_use_autosuspend(dev);
pm_runtime_mark_last_busy(dev);
pm_runtime_set_active(dev); pm_runtime_set_active(dev);
pm_runtime_enable(dev); pm_runtime_enable(dev);
pm_runtime_mark_last_busy(dev);
pm_runtime_put_autosuspend(dev);
} }
static int sof_of_probe(struct platform_device *pdev) static int sof_of_probe(struct platform_device *pdev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment