ASoC: SOF: Remove pm_runtime_put_autosuspend() for SOF OF device
authorAllen-KH Cheng <Allen-KH.Cheng@mediatek.com>
Thu, 9 Dec 2021 20:08:30 +0000 (22:08 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 14 Dec 2021 13:22:16 +0000 (13:22 +0000)
commit475b17b4a875ef31246c6a038ee60d5ca4982ea5
treec76ca6ebdc3c521d6afd3a56f9561686c32b1ab4
parent290a7c5509b6f14c28e959392f3cbc4d5b2c9318
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

Signed-off-by: Allen-KH Cheng <Allen-KH.Cheng@mediatek.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20211209200830.145005-1-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-of-dev.c