From 975ced97e2cb8325fb2b1ffc1608d3918399c7c8 Mon Sep 17 00:00:00 2001 From: Jigar Agrawal Date: Thu, 15 Oct 2020 07:46:11 -0700 Subject: [PATCH] msm: camera: csid: Fix the EOT IRQ Reception for Sensors with EPD Sensors with EPD feature do not subscribe to the ERROR_EOT IRQ. However, the CSID IRQ mask do not prevent from setting the IRQ status, it only prevents the IRQ from getting fired. Add check in csid irq to prevent detecting the EOT for Sensors with EPD. CRs-Fixed: 2798458 Change-Id: I8e029834918326b70154a989fbdff747de7851ed Signed-off-by: Jigar Agrawal --- .../isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c b/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c index 84a47891f5..febc580540 100644 --- a/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c +++ b/drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.c @@ -4927,8 +4927,9 @@ irqreturn_t cam_ife_csid_irq(int irq_num, void *data) fatal_err_detected = true; goto handle_fatal_error; } - if (irq_status[CAM_IFE_CSID_IRQ_REG_RX] & - CSID_CSI2_RX_ERROR_CPHY_EOT_RECEPTION) { + if ((irq_status[CAM_IFE_CSID_IRQ_REG_RX] & + CSID_CSI2_RX_ERROR_CPHY_EOT_RECEPTION) && + (!csid_hw->epd_supported)) { CAM_ERR_RATE_LIMIT(CAM_ISP, "CSID:%d CPHY_EOT_RECEPTION", csid_hw->hw_intf->hw_idx);