On Sat, Dec 27, 2025 at 07:58:10AM -0700, Simon Glass wrote: > Hi Tom, > > On Sat, 27 Dec 2025 at 07:48, Tom Rini <[email protected]> wrote: > > > > On Sat, Dec 27, 2025 at 04:44:07AM -0700, Simon Glass wrote: > > > Hi, > > > > > > On Mon, 1 Dec 2025 at 12:49, Simon Glass <[email protected]> wrote: > > > > > > > > When there is no device tree there is not point in trying to find nodes, > > > > etc. since they will all be null. > > > > > > > > Add static inlines to skip the code in that case. > > > > > > > > Unfortunately this makes the file a little convoluted and there are > > > > two inlines for ofnode_is_enabled() and ofnode_first/next_subnode(). But > > > > it seems better than the alternative. > > > > > > > > We could also consider splitting up the header file. > > > > > > > > Also add a rule in drivers/Makefile to compile ofnode.o when OF_REAL is > > > > enabled but DM is not (for kontron-sl-mx6ul) and move the > > > > ofnode_for_each_compatible_node/prop() macros outside the OF_REAL > > > > condition, since they only use functions that have stubs. > > > > > > > > Co-developed-by: Claude <[email protected]> > > > > Signed-off-by: Simon Glass <[email protected]> > > > > --- > > > > > > > > drivers/Makefile | 4 + > > > > drivers/core/Makefile | 3 +- > > > > include/dm/ofnode.h | 714 +++++++++++++++++++++++++++++++++++++----- > > > > 3 files changed, 641 insertions(+), 80 deletions(-) > > > > > > Any thoughts on this patch, please? > > > > I'm not sure what you're expecting for AI-developed patches after we > > talked on the community call about not doing that. > > I haven't been able to join recently but should be able to join the > one in a few weeks. Which meeting was it?
The last call you joined, where you asked about briging up AI, and I explained why I didn't think it was a good idea, and we should at least wait until after kernel summit, which was going to talk about it, before we do anything else. > > That absolute briefest review I can give is that it didn't solve the > > problem either, and so you didn't test it correctly. > > > > I was just planning to ignore this, rather than get in to another long > > thread with you that I suspect few people would read. > > The problem solved is in the commit message. Is that the problem you > are referring to, or is there another one? We can discuss it in the > next call if you prefer. It seems like you forgot why you made this patch. But your patch also doesn't solve the problem it states, which you would have also found if you did more in-depth testing. This patch is I think a great example of why as a project U-Boot should have a "Don't use AI" policy. If with all your experience with the project this is the best you can get I fear others will have even worse quality output. -- Tom
signature.asc
Description: PGP signature

