[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1629195546-27811-2-git-send-email-mkshah@codeaurora.org>
Date: Tue, 17 Aug 2021 15:49:06 +0530
From: Maulik Shah <mkshah@...eaurora.org>
To: maz@...nel.org, tglx@...utronix.de
Cc: linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-gpio@...r.kernel.org, bjorn.andersson@...aro.org,
linus.walleij@...aro.org, tkjos@...gle.com, lsrao@...eaurora.org,
Maulik Shah <mkshah@...eaurora.org>
Subject: [PATCH 2/2] irqchip: qcom-pdc: Disconnect domain hierarchy for GPIO_NO_WAKE_IRQs
gpio_to_irq() reports error at irq_domain_trim_hierarchy() for non wakeup
capable GPIOs that do not have dedicated interrupt at GIC.
Since PDC irqchip do not allocate irq at parent GIC domain for such GPIOs
indicate same by using irq_domain_disconnect_hierarchy().
Signed-off-by: Maulik Shah <mkshah@...eaurora.org>
---
drivers/irqchip/qcom-pdc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/irqchip/qcom-pdc.c b/drivers/irqchip/qcom-pdc.c
index 32d5920..0ba0461 100644
--- a/drivers/irqchip/qcom-pdc.c
+++ b/drivers/irqchip/qcom-pdc.c
@@ -324,8 +324,11 @@ static int qcom_pdc_gpio_alloc(struct irq_domain *domain, unsigned int virq,
if (ret)
return ret;
- if (hwirq == GPIO_NO_WAKE_IRQ)
+ if (hwirq == GPIO_NO_WAKE_IRQ) {
+ if (domain->parent)
+ irq_domain_disconnect_hierarchy(domain->parent, virq);
return 0;
+ }
parent_hwirq = get_parent_hwirq(hwirq);
if (parent_hwirq == PDC_NO_PARENT_IRQ)
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
Powered by blists - more mailing lists