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

Commit 26f81bc5 authored by Shilpa Mamidi's avatar Shilpa Mamidi Committed by Gerrit - the friendly Code Review server
Browse files

msm: isp: Clear irq status if irq is set again with same value



Sometimes HW is giving same irq twice even after clearing
irq. As workaround HW team suggested to read back irq
after clearing and if read back irq is same as before clear
then we need to clear register again.

Change-Id: I79cecfa1c61c6224b8f9cef8146a2bb44a7522e8
Signed-off-by: default avatarShilpa Mamidi <shilpam@codeaurora.org>
parent 6f777b23
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -586,6 +586,11 @@ static void msm_vfe40_read_and_clear_irq_status(struct vfe_device *vfe_dev,

	*irq_status0 &= vfe_dev->irq0_mask;
	*irq_status1 &= vfe_dev->irq1_mask;
	if (*irq_status0 &&
		(*irq_status0 == msm_camera_io_r(vfe_dev->vfe_base + 0x38))) {
		msm_camera_io_w(*irq_status0, vfe_dev->vfe_base + 0x30);
		msm_camera_io_w_mb(1, vfe_dev->vfe_base + 0x24);
	}

	if (*irq_status1 & (1 << 0)) {
		vfe_dev->error_info.camif_status =