[PATCH v2 12/33] ofnode: Use 4K for a default tree-size

Simon Glass sjg at chromium.org
Thu Jan 9 13:37:08 CET 2025


Hi Tom,

On Wed, 8 Jan 2025 at 11:33, Tom Rini <trini at konsulko.com> wrote:
>
> On Mon, Jan 06, 2025 at 07:32:08AM -0700, Simon Glass wrote:
>
> > At some point it would be nice to have the ofnode API automatically
> > expand the tree as required, to accommodate new nodes. For now, expand
> > the default size so that UPL can be supported.
> >
> > Signed-off-by: Simon Glass <sjg at chromium.org>
> > ---
> >
> > (no changes since v1)
> >
> >  drivers/core/ofnode.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Why not have oftree_new take a size parameter?

Well, the real solution is as in the commit message. This commit is
just kicking it down the road, but we need to make progress on
livetree, as the logic to automatically expand a flattree could be a
bit painful. I'm not sure if someone other than me is interested in
working on it.

I just felt that 1K was a bit small to be useful.

Regards,
Simon


More information about the U-Boot mailing list