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

Commit ed8aedf2 authored by Alan Kwong's avatar Alan Kwong
Browse files

drm/msm/sde: correct index lookup for interrupt clear register



Interrupt get status function incorrectly uses interrupt index to
lookup clear register offset. Correct get status function to use
register index instead to lookup up interrupt offset register.

CRs-Fixed: 2053107
Change-Id: I0c298e0b2b2cbc19758ff84be35ba2d2ce52aeb3
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent dc62e315
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -986,7 +986,7 @@ static u32 sde_hw_intr_get_interrupt_status(struct sde_hw_intr *intr,
			sde_intr_set[reg_idx].status_off) &
					sde_irq_map[irq_idx].irq_mask;
	if (intr_status && clear)
		SDE_REG_WRITE(&intr->hw, sde_intr_set[irq_idx].clr_off,
		SDE_REG_WRITE(&intr->hw, sde_intr_set[reg_idx].clr_off,
				intr_status);

	spin_unlock_irqrestore(&intr->mask_lock, irq_flags);