summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/dsp/dsp_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/dsp/dsp_core.c')
-rw-r--r--lib/rbcodec/dsp/dsp_core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rbcodec/dsp/dsp_core.c b/lib/rbcodec/dsp/dsp_core.c
index 5108c9ef47..c15e4342ae 100644
--- a/lib/rbcodec/dsp/dsp_core.c
+++ b/lib/rbcodec/dsp/dsp_core.c
@@ -535,6 +535,16 @@ void dsp_init(void)
for (unsigned int j = 0; j < ARRAYLEN(dsp_init_fn); ++j)
dsp_init_fn[j](dsp, i);
+ /*
+ * FIXME: This is a no-op and should not be needed, but it
+ * appears there is a race condition here that causes
+ * prefetch abort panics on the Clip+. See FS#13386.
+ * Replacing the loop with mdelay(1) also suppresses
+ * the crash.
+ */
+ for (unsigned int j = 0; j < DSP_NUM_PROC_STAGES; j++)
+ dsp_proc_database[j]->configure(NULL, dsp, DSP_INIT, i);
+
dsp_configure(dsp, DSP_RESET, 0);
}
}