diff options
| author | Michal Simek <[email protected]> | 2024-04-26 15:38:12 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-06-20 11:41:42 -0600 |
| commit | 85df7f173cd2ec2acaf163e0136ef9e4e940917f (patch) | |
| tree | 932e7281e03fd4e3ea35951fe22083a1c35365cc | |
| parent | aa815e6c76036d507c8c1bcc2bd2ef5e6e820428 (diff) | |
lib: smbios: Let detect the system via sysinfo
Currently code looks like that it sysinfo drivers are supported but
actually none checking that system is detected. That's why call
sysinfo_detect() to make sure that priv->detected in sysinfo uclass is
setup hence information from driver can be passed to smbios.
Signed-off-by: Michal Simek <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | lib/smbios.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/smbios.c b/lib/smbios.c index a822acd48e9..c6c3b62ae64 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -573,8 +573,14 @@ ulong write_smbios_table(ulong addr) ctx.node = ofnode_null(); if (IS_ENABLED(CONFIG_OF_CONTROL) && CONFIG_IS_ENABLED(SYSINFO)) { uclass_first_device(UCLASS_SYSINFO, &ctx.dev); - if (ctx.dev) + if (ctx.dev) { + int ret; + parent_node = dev_read_subnode(ctx.dev, "smbios"); + ret = sysinfo_detect(ctx.dev); + if (ret) + return ret; + } } else { ctx.dev = NULL; } |
