[PATCH v4 1/5] dm: gpio: Fix gpio_get_list_count failing with livetree

Tom Rini trini at konsulko.com
Thu May 6 17:02:35 CEST 2021

On Tue, Apr 20, 2021 at 10:50:54AM -0400, Sean Anderson wrote:

> of_parse_phandle_with_args (called by dev_read_phandle_with_args) does not
> support getting the length of a phandle list by using the index -1.
> Instead, use dev_count_phandle_with_args which supports exactly this
> use-case.
> Fixes: 8558217153 ("gpio: Convert to use APIs which support live DT")
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210506/d53f7a97/attachment.sig>

More information about the U-Boot mailing list