Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e5edf49 authored by Ravikishore Pampana's avatar Ravikishore Pampana
Browse files

msm: camera: csid: Halt csid if error irqs exceed threshold



If continuous csid unbound and underflow error irq comes then it cause
the system watchdog bark on device. Halt the csid hardware and disable
the unbound and underflow irqs if number of irqs exceeds the threshold
value.

Change-Id: Ia708ce821a7301379b7a2db75671f38e567e804b
Signed-off-by: default avatarRavikishore Pampana <rpampana@codeaurora.org>
parent d151504a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3041,10 +3041,12 @@ irqreturn_t cam_ife_csid_irq(int irq_num, void *data)
	if (irq_status_rx & CSID_CSI2_RX_ERROR_STREAM_UNDERFLOW) {
		CAM_ERR_RATE_LIMIT(CAM_ISP, "CSID:%d ERROR_STREAM_UNDERFLOW",
			 csid_hw->hw_intf->hw_idx);
		csid_hw->error_irq_count++;
	}
	if (irq_status_rx & CSID_CSI2_RX_ERROR_UNBOUNDED_FRAME) {
		CAM_ERR_RATE_LIMIT(CAM_ISP, "CSID:%d UNBOUNDED_FRAME",
			 csid_hw->hw_intf->hw_idx);
		csid_hw->error_irq_count++;
	}

	if (csid_hw->error_irq_count >