Skip to content

Commit 6b090e6

Browse files
ranj063plbossart
authored andcommitted
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 <ranjani.sridharan@linux.intel.com>
1 parent ead9a08 commit 6b090e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,14 @@ int snd_sof_device_remove(struct device *dev)
379379
cancel_work_sync(&sdev->probe_work);
380380

381381
if (sdev->fw_state > SOF_FW_BOOT_NOT_STARTED) {
382+
snd_sof_free_trace(sdev);
382383
ret = snd_sof_dsp_power_down_notify(sdev);
383384
if (ret < 0)
384385
dev_warn(dev, "error: %d failed to prepare DSP for device removal",
385386
ret);
386387

387388
snd_sof_ipc_free(sdev);
388389
snd_sof_free_debug(sdev);
389-
snd_sof_free_trace(sdev);
390390
}
391391

392392
/*

0 commit comments

Comments
 (0)