Browse Source

dsp: adsp-loader: call proper APIs to shutdown DSP gracefully

Original implementation calls rpoc_report_crash API which yanks out
ADSP abrutptly without proper shutdown. This leads to NOC errors
being reported. Update adsp-loader to call proper shutdown API.

Change-Id: Ibf4bab1e8a8b63082ab4014fff298abcb8750118
Signed-off-by: Patrick Lai <[email protected]>
Patrick Lai 3 years ago
parent
commit
ea9d97a198
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dsp/adsp-loader.c

+ 2 - 2
dsp/adsp-loader.c

@@ -189,8 +189,8 @@ static ssize_t adsp_ssr_store(struct kobject *kobj,
 
 	dev_err(&pdev->dev, "requesting for ADSP restart\n");
 
-	/* subsystem_restart_dev has worker queue to handle */
-	rproc_report_crash(adsp_dev, RPROC_FATAL_ERROR);
+	rproc_shutdown(adsp_dev);
+	adsp_loader_do(adsp_private);
 
 	dev_dbg(&pdev->dev, "%s :: ADSP restarted\n", __func__);
 	return count;