Thread (4 messages) 4 messages, 4 authors, 2021-12-25

Re: [PATCH 2/2] pinctrl: at91-pio4: Use platform_get_irq_optional() to get the interrupt

From: Andy Shevchenko <hidden>
Date: 2021-12-25 15:37:04
Also in: linux-gpio, lkml

On Sat, Dec 25, 2021 at 3:59 AM Lad Prabhakar
[off-list ref] wrote:
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypasses the hierarchical setup and messes up the
irq chaining.

In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq_optional().
+               ret = platform_get_irq_optional(pdev, i);
+               if (ret < 0) {
                        dev_err(dev, "missing irq resource for group %c\n",
                                'A' + i);
-                       return -EINVAL;
+                       return ret;
                }
This is an incorrect use of platform_get_irq_optional() (It's not
related to what Alexandre said, it's an additional comment).
NAK.

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help