Procházet zdrojové kódy

Merge "msm: camera: tfe: Avoid unclocked access of registers during regdump" into camera-kernel.lnx.7.0

Camera Software Integration před 7 měsíci
rodič
revize
c487ff5163
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

+ 6 - 0
drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c

@@ -158,6 +158,12 @@ static int cam_tfe_mgr_handle_reg_dump(struct cam_tfe_hw_mgr_ctx *ctx,
 		return rc;
 	}
 
+	if (!ctx->init_done) {
+		CAM_WARN(CAM_ISP, "regdump can't possible as HW not initialized, ctx_idx: %u",
+				ctx->ctx_index);
+		return 0;
+	}
+
 	if (!atomic_read(&ctx->cdm_done))
 		CAM_WARN_RATE_LIMIT(CAM_ISP,
 			"Reg dump values might be from more than one request");