[U-Boot] [PATCH 2/6] fdtdec: Implement fdtdec_get_max_phandle()

Simon Glass
2019-03-10T21:51:31Z

Hi Thierry,

On Fri, 8 Mar 2019 at 13:11, Thierry Reding <thierry.reding@gmail.com> wrote:
>
> From: Thierry Reding <treding@nvidia.com>
>
> This function allows looking up the highest phandle value stored in a
> device tree, which is useful to determine the next best phandle value
> for new nodes.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> include/fdtdec.h | 12 ++++++++++++
> lib/fdtdec.c | 28 ++++++++++++++++++++++++++++
> 2 files changed, 40 insertions(+)

Can we use fdt_get_max_phandle() instead? If not, could you please add
a bit more detail to the commit message as we might consider changing
the upstream function.

Regards,
Simon