Merge "msm: camera: isp: Add SFE core idx in CSID error notify" into camera-kernel.lnx.5.0
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
f4d36c1591
@@ -495,7 +495,10 @@ static int cam_ife_hw_mgr_notify_overflow(
|
|||||||
hw_if = g_ife_hw_mgr.ife_devices[evt->hw_idx]->hw_intf;
|
hw_if = g_ife_hw_mgr.ife_devices[evt->hw_idx]->hw_intf;
|
||||||
res_id = ife_res_id;
|
res_id = ife_res_id;
|
||||||
} else if (hw_mgr_ctx->base[i].hw_type == CAM_ISP_HW_TYPE_SFE) {
|
} else if (hw_mgr_ctx->base[i].hw_type == CAM_ISP_HW_TYPE_SFE) {
|
||||||
hw_if = g_ife_hw_mgr.sfe_devices[evt->hw_idx];
|
if (evt->in_core_type >= CAM_SFE_HW_NUM_MAX)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
hw_if = g_ife_hw_mgr.sfe_devices[evt->in_core_type];
|
||||||
res_id = sfe_res_id;
|
res_id = sfe_res_id;
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
|
@@ -1013,6 +1013,11 @@ static int cam_ife_csid_ver2_handle_event_err(
|
|||||||
csid_hw->hw_intf->hw_idx, err_type, irq_status);
|
csid_hw->hw_intf->hw_idx, err_type, irq_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (csid_hw->top_cfg.input_core_type == CAM_IFE_CSID_INPUT_CORE_SEL_SFE_0)
|
||||||
|
evt.in_core_type = 0;
|
||||||
|
else if (csid_hw->top_cfg.input_core_type == CAM_IFE_CSID_INPUT_CORE_SEL_SFE_1)
|
||||||
|
evt.in_core_type = 1;
|
||||||
|
|
||||||
csid_hw->event_cb(csid_hw->token,
|
csid_hw->event_cb(csid_hw->token,
|
||||||
CAM_ISP_HW_EVENT_ERROR, (void *)&evt);
|
CAM_ISP_HW_EVENT_ERROR, (void *)&evt);
|
||||||
|
|
||||||
|
@@ -241,6 +241,7 @@ struct cam_isp_blanking_config {
|
|||||||
* @err_type: Error type if any
|
* @err_type: Error type if any
|
||||||
* @reg_val: Any critical register value captured during irq handling
|
* @reg_val: Any critical register value captured during irq handling
|
||||||
* @hw_type: Hw Type sending the event
|
* @hw_type: Hw Type sending the event
|
||||||
|
* @in_core_type: Input core type if CSID error evt
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
struct cam_isp_hw_event_info {
|
struct cam_isp_hw_event_info {
|
||||||
@@ -250,6 +251,7 @@ struct cam_isp_hw_event_info {
|
|||||||
uint32_t err_type;
|
uint32_t err_type;
|
||||||
uint32_t reg_val;
|
uint32_t reg_val;
|
||||||
uint32_t hw_type;
|
uint32_t hw_type;
|
||||||
|
uint32_t in_core_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user