From 7bdc78519e678188d9e881fe34e98cfb3d036da2 Mon Sep 17 00:00:00 2001 From: Andrew Perepech Date: Tue, 1 Apr 2025 16:57:55 -0700 Subject: [PATCH] platform: mtk: Fix crash in DEBUG build on MTK platform Fix crash https://github.com/thesofproject/sof/issues/9933 in DEBUG build on MTK platform. ipc_init() must be called after scheduler_init_ll(). Signed-off-by: Andrew Perepech --- src/platform/mtk/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/mtk/platform.c b/src/platform/mtk/platform.c index 53b48f12b6e9..1592c020f7a2 100644 --- a/src/platform/mtk/platform.c +++ b/src/platform/mtk/platform.c @@ -160,11 +160,11 @@ void clocks_init(struct sof *sof) int platform_init(struct sof *sof) { clocks_init(sof); + scheduler_init_edf(); sof->platform_timer_domain = zephyr_domain_init(PLATFORM_DEFAULT_CLOCK); + scheduler_init_ll(sof->platform_timer_domain); mtk_dai_init(sof); ipc_init(sof); - scheduler_init_edf(); - scheduler_init_ll(sof->platform_timer_domain); sof->platform_dma_domain = dma_multi_chan_domain_init(&sof->dma_info->dma_array[0], sof->dma_info->num_dmas,