msm: camera: sync: Add support to invoke synx recover

If ICP FW is to be redowloaded, issue a synx recover for
this ICP core so that IPC/synx for the previous session
can be cleaned up prior to the next ICP cold boot.

CRs-Fixed: 3448052
Change-Id: I9f8f772730f7e4a8873b6dbdcf7a896ad6193150
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
This commit is contained in:
Karthik Anantha Ram
2023-03-28 14:49:59 -07:00
committed by Camera Software Integration
父節點 42c90f68b7
當前提交 267f259a72
共有 6 個文件被更改,包括 90 次插入0 次删除

查看文件

@@ -1437,6 +1437,18 @@ static int cam_generic_fence_process_dma_fence_cmd(
return rc;
}
int cam_sync_synx_core_recovery(
enum cam_sync_synx_supported_cores core_id)
{
int rc = -EOPNOTSUPP;
#if IS_ENABLED(CONFIG_TARGET_SYNX_ENABLE)
rc = cam_synx_core_recovery(core_id);
#endif
return rc;
}
#if IS_ENABLED(CONFIG_TARGET_SYNX_ENABLE)
static int cam_generic_fence_validate_signal_input_info_util(
int32_t fence_type,