summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-qcom-mpm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2025-05-06 08:42:25 +0900
committerMark Brown <broonie@kernel.org>2025-05-06 08:42:25 +0900
commit02ca7898185fcbfc5890f0a8e42664bcd95d94a1 (patch)
treeeb083c0ba0cd8c17565120e735685d6a268a6668 /drivers/irqchip/irq-qcom-mpm.c
parentfe65ce845c0a5876e0f6b9d848a951a218f8e3b2 (diff)
parent14a3fd030c033453d436233f4c422b4903786ed3 (diff)
AsoC: Phase out hybrid PCI devres
Merge series from Philipp Stanner <phasta@kernel.org>: A year ago we spent quite some work trying to get PCI into better shape. Some pci_ functions can be sometimes managed with devres, which is obviously bad. We want to provide an obvious API, where pci_ functions are never, and pcim_ functions are always managed. Thus, everyone enabling his device with pcim_enable_device() must be ported to pcim_ functions. Porting all users will later enable us to significantly simplify parts of the PCI subsystem. See here [1] for details. This patch series does that for sound. Feel free to squash the commits as you see fit. P. [1] https://elixir.bootlin.com/linux/v6.14-rc4/source/drivers/pci/devres.c#L18
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)