Re: [PATCH] pinctrl: samsung: exynos: replace irq_of_parse_and_map with modern APIs
Rosen Penev <[email protected]> Wed, 29 Jul 2026 14:03:01 -0700
| Newsgroups | org.kernel.vger.linux-samsung-soc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAKxU2N_bPw+_Lw6mSYF9Bj1KT=-y7oJ-_v2rhPBmULjU2p5KyQ@mail.gmail.com> |
On Mon, Jul 27, 2026 at 11:05=E2=80=AFPM Krzysztof Kozlowski <[email protected]= rg> wrote: > > On 27/07/2026 21:48, Rosen Penev wrote: > > Replace irq_of_parse_and_map() with fwnode_irq_get() for per-pin IRQ > > lookup and of_irq_get() for the muxed EINT IRQ. The fwnode-based API > > works with both OF and ACPI fwnodes and follows modern conventions. > > And what is the point of ACPI here? I see no point in such conversions > of one call while leading everything untouched. Add proper ACPI support > with valid ACPI tables with ENTIRE driver converted, not one call. Avoids having to call to_of_node. ACPI in the description should be removed= . As far as fwnode is concerned, fwnode APIs are used earlier in the driver, probably for the same reason. fwnode_irq_get didn't exist when this driver was written so of_irq_get + to_of_node made sense. > > > > > For the muxed EINT path, change the error handling to propagate the > > error code rather than silently returning 0. > > But why? of_irq_get can return -EPROBE_DEFER. > > > Best regards, > Krzysztof