From 5753a780b3b85742bf0d8b0e804b88d0c8c1c035 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Thu, 21 Oct 2021 08:22:09 -0700 Subject: [PATCH] fixup! ASoC: SOF: trace: send DMA_TRACE_FREE IPC during release Now that there's an IPC during trace release, move it before power_down_notify to make sure the IPC succeeds. Signed-off-by: Ranjani Sridharan --- sound/soc/sof/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/core.c b/sound/soc/sof/core.c index 09ee86a095a2e5..47e22978229291 100644 --- a/sound/soc/sof/core.c +++ b/sound/soc/sof/core.c @@ -379,6 +379,7 @@ int snd_sof_device_remove(struct device *dev) cancel_work_sync(&sdev->probe_work); if (sdev->fw_state > SOF_FW_BOOT_NOT_STARTED) { + snd_sof_free_trace(sdev); ret = snd_sof_dsp_power_down_notify(sdev); if (ret < 0) dev_warn(dev, "error: %d failed to prepare DSP for device removal", @@ -386,7 +387,6 @@ int snd_sof_device_remove(struct device *dev) snd_sof_ipc_free(sdev); snd_sof_free_debug(sdev); - snd_sof_free_trace(sdev); } /*