|
@@ -6293,13 +6293,15 @@ static int cam_ife_mgr_config_hw(void *hw_mgr_priv,
|
|
|
CAM_ERR(CAM_ISP,
|
|
|
"config done completion timeout for req_id=%llu ctx_index %d",
|
|
|
cfg->request_id, ctx->ctx_index);
|
|
|
-
|
|
|
- if (!cam_cdm_detect_hang_error(ctx->cdm_handle))
|
|
|
- CAM_ERR(CAM_ISP, "CDM Workqueue delayed");
|
|
|
- else
|
|
|
- cam_cdm_dump_debug_registers(ctx->cdm_handle);
|
|
|
-
|
|
|
- rc = -ETIMEDOUT;
|
|
|
+ rc = cam_cdm_detect_hang_error(ctx->cdm_handle);
|
|
|
+ if (rc < 0) {
|
|
|
+ cam_cdm_dump_debug_registers(
|
|
|
+ ctx->cdm_handle);
|
|
|
+ rc = -ETIMEDOUT;
|
|
|
+ } else {
|
|
|
+ CAM_DBG(CAM_ISP,
|
|
|
+ "Wq delayed but IRQ CDM done");
|
|
|
+ }
|
|
|
} else {
|
|
|
CAM_DBG(CAM_ISP,
|
|
|
"config done Success for req_id=%llu ctx_index %d",
|