Bladeren bron

msm: camera: isp: Reinit completion struct for CSID reset

Currently, CSID reset completion struct gets initialized once but never
gets reinitialized. This change reinitializes the completion struct
before calling CSID reset to prevent errors.

CRs-Fixed: 2830502
Change-Id: Ie538c3cb2152edcd7c38d1a6f98ab21831288ac8
Signed-off-by: Anand Ravi <[email protected]>
Anand Ravi 4 jaren geleden
bovenliggende
commit
b0f5a7f274
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

+ 1 - 0
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -1144,6 +1144,7 @@ static int cam_ife_csid_ver2_internal_reset(
 
 	soc_info = &csid_hw->hw_info->soc_info;
 	mem_base = soc_info->reg_map[CAM_IFE_CSID_CLC_MEM_BASE_ID].mem_base;
+	reinit_completion(&csid_hw->irq_complete[CAM_IFE_CSID_IRQ_REG_TOP]);
 
 	if (csid_hw->hw_info->hw_state != CAM_HW_STATE_POWER_UP) {
 		CAM_ERR(CAM_ISP, "CSID[%d] powered down state",