dsp-kernel: dsp: Update CDSP state flag after image unloading

CDSP state flag is not updated after subsystem is shutdown. Due to
this CDSP image loading is skipped. Update state flag after unloading.

Change-Id: Ife49e6845da4a6bfe149c04459c6823c09ccde31
Signed-off-by: Abhinav Parihar <quic_parihar@quicinc.com>
这个提交包含在:
Abhinav Parihar
2023-02-28 11:56:28 +05:30
父节点 f093a3613d
当前提交 c8bd1df6af

查看文件

@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2012-2014, 2017-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/init.h>
@@ -156,6 +156,7 @@ static void cdsp_loader_unload(struct platform_device *pdev)
dev_dbg(&pdev->dev, "%s: calling subsystem_put\n", __func__);
rproc_shutdown(priv->pil_h);
priv->pil_h = NULL;
cdsp_state = CDSP_SUBSYS_DOWN;
}
}
@@ -229,6 +230,7 @@ static int cdsp_loader_remove(struct platform_device *pdev)
if (priv->pil_h) {
rproc_shutdown(priv->pil_h);
priv->pil_h = NULL;
cdsp_state = CDSP_SUBSYS_DOWN;
}
if (priv->boot_cdsp_obj) {