[PATCH v2 1/9] dm: core: Fix iteration over driver_info records
Tom Rini
trini at konsulko.com
Fri Dec 2 16:23:50 CET 2022
On Mon, Nov 14, 2022 at 12:42:35PM +0000, Paul Barker wrote:
> We should only perform additional iteration steps when needed to
> initialize the parent of a device. Other binding errors (such as a
> missing driver) should not lead to additional iteration steps.
>
> Unnecessary iteration steps can cause issues when memory is tightly
> constrained (such as in the TPL/SPL) since device_bind_by_name()
> unconditionally allocates memory for a struct udevice. On the SanCloud
> BBE this led to boot failure caused by memory exhaustion in the SPL
> when booting from SPI flash.
>
> Signed-off-by: Paul Barker <paul.barker at sancloud.com>
For the series, applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221202/fa03caec/attachment.sig>
More information about the U-Boot
mailing list