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

Commit 37c9399e 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 133406eb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -572,6 +572,11 @@ static void msm_vfe40_read_irq_status_and_clear(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 =