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

Commit 47a05839 authored by Raghavendra Kakarla's avatar Raghavendra Kakarla
Browse files

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
fc8e11b2.

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: default avatarRaghavendra Kakarla <rkakarla@codeaurora.org>
Signed-off-by: default avatarHaribabu Gattem <haribabu@codeaurora.org>
parent b969957c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* 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,
};