[PATCH] dm: add cells_count parameter in live DT APIs of_parse_phandle_with_args

Simon Glass sjg at chromium.org
Sun Sep 27 03:59:34 CEST 2020


On Thu, 10 Sep 2020 at 10:26, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> In the live tree API ofnode_parse_phandle_with_args, the cell_count
> argument must be used when cells_name is NULL.
>
> But this argument is not provided to the live DT function
> of_parse_phandle_with_args even it is provided to
> fdtdec_parse_phandle_with_args.
>
> This patch adds support of the cells_count parameter in dev_ and
> of_node API to allow migration and support of live DT:
> - of_parse_phandle_with_args
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
>  drivers/core/of_access.c | 7 ++++---
>  drivers/core/ofnode.c    | 3 ++-
>  include/dm/of_access.h   | 4 +++-
>  3 files changed, 9 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list