[PATCH 1/3] bootstd: Fix memleak on errors in bootmeth_setup_iter_order()

2025-01-11 Thread Sam Protsenko
Free memory allocated for 'order' (array of bootmeths) on error paths in bootmeth_setup_iter_order() function. Fixes: c627cfc14c08 ("bootstd: Allow scanning for global bootmeths separately") Fixes: 10d16faa436c ("bootstd: Detect empty bootmeth") Signed-off-by: Sam Protsenko --- boot/bootmeth-ucl

[PATCH 3/3] bootstd: Fix incorrect struct name in bootmeth_setup_iter_order()

2025-01-11 Thread Sam Protsenko
There is no such thing as struct bootmeth, it's probably a typo. This issue doesn't affect the execution as it's a pointer, and pointer sizes are the same for all data types. But it can be confusing, so make it struct udevice, as it should be. Fixes: a950d31abe98 ("bootstd: Add the bootmeth uclass

[PATCH 2/3] bootstd: Probe bootmeth devices for bootmeths env var

2025-01-11 Thread Sam Protsenko
Specifying efi_mgr in 'bootmeths' environment variable leads to NULL pointer dereference when 'bootflow scan' is executed, with call trace like this: priv->fake_dev // NULL pointer dereference .read_bootflow = efi_mgr_read_bootflow() bootmeth_get_bootflow() bootflow_check() boo

[PATCH 0/3] bootstd: Fix efi_mgr usage in bootmeths env var

2025-01-11 Thread Sam Protsenko
Defining the 'bootmeths' environment variable with efi_mgr causes NULL pointer dereference when running 'bootflow scan' on the E850-96 board. This patch series fixes that, and cleans up the surrounding code a little while at it. Sam Protsenko (3): bootstd: Fix memleak on errors in bootmeth_setup

Re: [PATCH v4 7/8] usb: dwc2: Unify flush and reset logic with v4.20a support

2025-01-11 Thread Marek Vasut
On 1/10/25 2:55 PM, Junhui Liu wrote: From: Kongyang Liu This patch merges flush and reset logic for both host and gadget code into a common set of functions, reducing duplication. It also adds support for the updated reset logic to compatible with core version since v4.20a. This patch mainly

Re: [PATCH 02/15] vbe: Split out reading a FIT into a common file

2025-01-11 Thread Tom Rini
On Thu, Jan 09, 2025 at 05:29:57AM -0700, Simon Glass wrote: > Loading a FIT is useful for other VBE methods, such as ABrec. Create a > new function to handling reading it. > > Signed-off-by: Simon Glass This causes a bunch of growth: a3y17lte : all +1328 text +1328

Re: [PATCH v3 13/13] imx8mp_evk: Enable display support

2025-01-11 Thread Miquel Raynal
Hello Fabio, On 10/01/2025 at 15:53:35 -03, Fabio Estevam wrote: > Hi Peng, > > On Fri, Jan 10, 2025 at 3:43 PM Miquel Raynal > wrote: >> >> There is now support for the display pipeline using one LCD interface, >> the LDB bridge and of course the related media power domain controls. >> >> Thi