[PATCH 2/2] board-info: Call sysinfo_detect() before sysinfo_get_str()

Tom Rini trini at konsulko.com
Wed Jul 14 22:52:27 CEST 2021


On Sun, Jul 04, 2021 at 09:32:05PM +0200, Marek Vasut wrote:

> The sysinfo_get_str() implementation checks whether the sysinfo was even
> detected. In U-Boot proper, sysinfo_detect() is not called anywhere but
> on one specific board. Call sysinfo_detect() before sysinfo_get_str() to
> make sure the sysinfo is detected and sysinfo_get_str() returns valid
> value instead of -EPERM.
> 
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> Cc: Simon Glass <sjg at chromium.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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/20210714/fa126860/attachment.sig>


More information about the U-Boot mailing list