Merge "msm: camera: isp: Reset the CSID debug info on release" into camera-kernel.lnx.5.0

This commit is contained in:
Haritha Chintalapati
2021-03-11 14:58:08 -08:00
committed by Gerrit - the friendly Code Review server
2 changed files with 8 additions and 0 deletions

View File

@@ -205,6 +205,8 @@ static int cam_ife_csid_ver1_set_debug(
int bit_pos = 0;
uint32_t val;
memset(&csid_hw->debug_info, 0,
sizeof(struct cam_ife_csid_debug_info));
csid_hw->debug_info.debug_val = debug_val;
while (debug_val) {
@@ -1837,6 +1839,8 @@ int cam_ife_csid_ver1_release(void *hw_priv,
if (!csid_hw->counters.csi2_reserve_cnt) {
memset(&csid_hw->rx_cfg, 0,
sizeof(struct cam_ife_csid_rx_cfg));
memset(&csid_hw->debug_info, 0,
sizeof(struct cam_ife_csid_debug_info));
csid_hw->event_cb = NULL;
csid_hw->token = NULL;
}

View File

@@ -231,6 +231,8 @@ static int cam_ife_csid_ver2_set_debug(
int bit_pos = 0;
uint32_t val;
memset(&csid_hw->debug_info, 0,
sizeof(struct cam_ife_csid_debug_info));
csid_hw->debug_info.debug_val = debug_val;
while (debug_val) {
@@ -1791,6 +1793,8 @@ int cam_ife_csid_ver2_release(void *hw_priv,
sizeof(struct cam_ife_csid_rx_cfg));
memset(&csid_hw->top_cfg, 0,
sizeof(struct cam_ife_csid_ver2_top_cfg));
memset(&csid_hw->debug_info, 0,
sizeof(struct cam_ife_csid_debug_info));
csid_hw->token = NULL;
}