irqchip: qcom: mpm: Add irq_set_wake support to mpm irqchip

GIC driver started supporting irq_set_wake call and stores
wakeup capable irq in wakeup_irqs with commit
fc8e11b256.

Since MPM is currently not forwarding irq_set_wake calls
to its parent GIC, device is not able to wake up from
suspend since no wakeup capable IRQ is present in GIC's
wakeup_irqs.

Add support in MPM irq_chip to forward irq_set_wake calls
to its parent GIC to resolve this.

Change-Id: I4b7398ded02c544602b12c5b0ca8f392f7ee1e46
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: Haribabu Gattem <haribabu@codeaurora.org>
tirimbino
Raghavendra Kakarla 5 years ago
parent b969957ca7
commit 47a0583925
  1. 5
      drivers/irqchip/qcom/mpm.c

@ -1,4 +1,4 @@
/* Copyright (c) 2010-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2020, The Linux Foundation. All rights reserved.
*
* 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
@ -256,8 +256,9 @@ static struct irq_chip msm_mpm_gic_chip = {
.irq_disable = msm_mpm_gic_chip_mask,
.irq_unmask = msm_mpm_gic_chip_unmask,
.irq_retrigger = irq_chip_retrigger_hierarchy,
.irq_set_wake = irq_chip_set_wake_parent,
.irq_set_type = msm_mpm_gic_chip_set_type,
.flags = IRQCHIP_MASK_ON_SUSPEND | IRQCHIP_SKIP_SET_WAKE,
.flags = IRQCHIP_MASK_ON_SUSPEND,
.irq_set_affinity = irq_chip_set_affinity_parent,
};

Loading…
Cancel
Save