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: Alan Kwong <akwong@codeaurora.org>
This commit is contained in:
parent
9d348d2480
commit
1fb688b1c5
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License version 2 and
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
@ -905,7 +905,7 @@ static u32 sde_hw_intr_get_interrupt_status(struct sde_hw_intr *intr,
|
||||||
sde_intr_set[reg_idx].status_off) &
|
sde_intr_set[reg_idx].status_off) &
|
||||||
sde_irq_map[irq_idx].irq_mask;
|
sde_irq_map[irq_idx].irq_mask;
|
||||||
if (intr_status && clear)
|
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);
|
intr_status);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&intr->mask_lock, irq_flags);
|
spin_unlock_irqrestore(&intr->mask_lock, irq_flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue