summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-qcom-mpm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2025-05-07 09:47:05 +0900
committerMark Brown <broonie@kernel.org>2025-05-07 09:47:05 +0900
commit9fbae052f6f68056fd84e8ba096a7e9ab3464f3d (patch)
tree9761fe612792d8c4e67c5da66fa5258e7c0c13fe /drivers/irqchip/irq-qcom-mpm.c
parent222a87f6b94f6f177e896d6fcdc7881480344e34 (diff)
parent9f7cd1bcb6363368abc954ff4e727b579813c697 (diff)
This patch set did some clean up and add runtime pm
Merge series from Haibo Chen <haibo.chen@nxp.com>: PATCH1/3/4 to clean up the code, make the code more readable PATCH2 add the runtime pm support PATCH5 use devm_add_action_or_reset() to replace remove() callback, this can avoid oops when do bind/unbind test
Diffstat (limited to 'drivers/irqchip/irq-qcom-mpm.c')
-rw-r--r--drivers/irqchip/irq-qcom-mpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-qcom-mpm.c b/drivers/irqchip/irq-qcom-mpm.c
index 7942d8eb3d00..f772deb9cba5 100644
--- a/drivers/irqchip/irq-qcom-mpm.c
+++ b/drivers/irqchip/irq-qcom-mpm.c
@@ -227,6 +227,9 @@ static int qcom_mpm_alloc(struct irq_domain *domain, unsigned int virq,
if (ret)
return ret;
+ if (pin == GPIO_NO_WAKE_IRQ)
+ return irq_domain_disconnect_hierarchy(domain, virq);
+
ret = irq_domain_set_hwirq_and_chip(domain, virq, pin,
&qcom_mpm_chip, priv);
if (ret)