From: Tom Rini Date: Thu, 6 May 2021 11:02:35 -0400 Subject: [PATCH v4 1/5] dm: gpio: Fix gpio_get_list_count failing with livetree In-Reply-To: <20210420145058.3934010-2-sean.anderson@seco.com> References: <20210420145058.3934010-1-sean.anderson@seco.com> <20210420145058.3934010-2-sean.anderson@seco.com> Message-ID: <20210506150235.GH17669@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: