Re: [PATCH v2] pinctrl: single: parse gpio-range as a raw array (O(N^2) -> O(N))

Tom Rini <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <[email protected]>
On Thu, 25 Jun 2026 19:41:21 +0200, Jordi Trepat Mur wrote:

> single_add_gpio_func() calls ofnode_parse_phandle_with_args() once per
> gpio-range entry. With a flat device tree, every call re-iterates the
> property from index 0 and, because cellname is set, performs an
> fdt_node_offset_by_phandle() (a full-FDT scan) at every step. The total
> cost is therefore quadratic in the number of entries and proportional to
> the size of the device tree.
> 
> [...]

Applied to u-boot/main, thanks!

[1/1] pinctrl: single: parse gpio-range as a raw array (O(N^2) -> O(N))
      commit: 11f5a60ba75af27c8a63e1e0e5d3f6cddaca1c7a
-- 
Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.