On Fri, 19 Dec 2025 14:13:40 -0600, Tom Rini wrote:
> Hey all,
>
> As seen by a number of patches fixing memory leaks, U-Boot has a problem
> with developer expectations around devm_kmalloc and friends. Namely,
> whereas in Linux these memory allocations will be freed automatically in
> most cases, in U-Boot this is only true if DEVRES is enabled. Now,
> intentionally, in xPL phases, we do not (and do not offer as an option)
> enabling DEVRES. However in full U-Boot this is left either to the user,
> or some drivers have select'd DEVRES on their own. This inconsistency is
> a problem. This series goes and deals with two small issues that were
> shown by having all drivers that use devm_.alloc to allocate memory also
> select DEVRES and then we make DEVRES no longer be a prompted option and
> instead select'd as needed. We do not make this unconditional as it
> would result in growing the resulting binary on the many platforms which
> have no users of the devm_.alloc family of functions.
>
> [...]
Applied to u-boot/next, thanks!
[1/3] mips: Reduce size in gardena-smart-gateway-mt7688
commit: 22ef38f6933adfa0d89b6841f4671f6595f967d5
--
Tom