]> git.dujemihanovic.xyz Git - u-boot.git/commit
board-info: Call sysinfo_detect() before sysinfo_get_str()
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 4 Jul 2021 19:32:05 +0000 (21:32 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Jul 2021 20:48:00 +0000 (16:48 -0400)
commit93e310c3a69984aa7e0435994da86c349d2d69d4
treee5960ebfcca97bd5f3efb51d5e19423d7c3969cc
parent10f3e157e8f9d95860033fcaec2953f8cf11d2d6
board-info: Call sysinfo_detect() before sysinfo_get_str()

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@gmail.com>
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/board_info.c