diff options
| author | Tom Rini <[email protected]> | 2026-01-09 09:08:18 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-01-09 10:19:57 -0600 |
| commit | 1bcb2fe324180d0a8cfbdb0511737eba1d5b8550 (patch) | |
| tree | 8b7449bae3c6c2202bab853f75813e9c43932bf1 /drivers/video | |
| parent | cf51247c632fe6f1f6c29a6f7754b99915182142 (diff) | |
| parent | 217cf656e249f698d390a7d8eaf255eb1a6c0230 (diff) | |
Merge patch series "Enable / require DEVRES for devm_.alloc usage outside xPL"
Tom Rini <[email protected]> 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/[email protected]
Diffstat (limited to 'drivers/video')
| -rw-r--r-- | drivers/video/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 0fc1c161541..d6c0d4fdfc4 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -834,6 +834,7 @@ config BACKLIGHT_LM3533 config BACKLIGHT_LP855x bool "Backlight Driver for LP855x" depends on BACKLIGHT + select DEVRES select DM_I2C help Say Y to enable the backlight driver for National Semiconductor / TI |
