]> git.ipfire.org Git - thirdparty/u-boot.git/commit
Merge patch series "Enable / require DEVRES for devm_.alloc usage outside xPL" master
authorTom Rini <trini@konsulko.com>
Fri, 9 Jan 2026 15:08:18 +0000 (09:08 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 9 Jan 2026 16:19:57 +0000 (10:19 -0600)
commit1bcb2fe324180d0a8cfbdb0511737eba1d5b8550
tree8b7449bae3c6c2202bab853f75813e9c43932bf1
parentcf51247c632fe6f1f6c29a6f7754b99915182142
parent217cf656e249f698d390a7d8eaf255eb1a6c0230
Merge patch series "Enable / require DEVRES for devm_.alloc usage outside xPL"

Tom Rini <trini@konsulko.com> says:

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.

Link: https://lore.kernel.org/r/20251227223833.3019311-1-trini@konsulko.com
drivers/spi/Kconfig
drivers/video/Kconfig