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

Commit 5247142a authored by Raghavendra Kakarla's avatar Raghavendra Kakarla
Browse files

irqchip: qcom: pdc: Add irq_set_wake support to pdc irqchip



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

Since PDC 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 PDC irq_chip to forward irq_set_wake calls
to its parent GIC to resolve this.

Change-Id: Ib151658a551364545a67e82b07520fe3bf19373d
Signed-off-by: default avatarRaghavendra Kakarla <rkakarla@codeaurora.org>
parent 47a05839
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-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
@@ -239,11 +239,11 @@ static struct irq_chip qcom_pdc_gic_chip = {
	.irq_enable		= qcom_pdc_gic_enable,
	.irq_unmask		= qcom_pdc_gic_unmask,
	.irq_disable		= qcom_pdc_gic_disable,
	.irq_set_wake		= irq_chip_set_wake_parent,
	.irq_retrigger		= irq_chip_retrigger_hierarchy,
	.irq_set_type		= qcom_pdc_gic_set_type,
	.flags			= IRQCHIP_MASK_ON_SUSPEND |
					IRQCHIP_SET_TYPE_MASKED |
					IRQCHIP_SKIP_SET_WAKE,
					IRQCHIP_SET_TYPE_MASKED,
	.irq_set_vcpu_affinity	= irq_chip_set_vcpu_affinity_parent,
#ifdef CONFIG_SMP
	.irq_set_affinity	= irq_chip_set_affinity_parent,