mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "spmi: spmi-pmic-arb: check apid against limits before calling irq handler"
This commit is contained in:
commit
ddb423b140
1 changed files with 6 additions and 0 deletions
|
|
@ -535,6 +535,12 @@ static void pmic_arb_chained_irq(struct irq_desc *desc)
|
|||
id = ffs(status) - 1;
|
||||
status &= ~BIT(id);
|
||||
apid = id + i * 32;
|
||||
if (apid < pmic_arb->min_apid
|
||||
|| apid > pmic_arb->max_apid) {
|
||||
WARN_ONCE(true, "spurious spmi irq received for apid=%d\n",
|
||||
apid);
|
||||
continue;
|
||||
}
|
||||
enable = readl_relaxed(
|
||||
ver_ops->acc_enable(pmic_arb, apid));
|
||||
if (enable & SPMI_PIC_ACC_ENABLE_BIT)
|
||||
|
|
|
|||
Loading…
Reference in a new issue