[PATCH] cmd: bdinfo: Enable dumping lmb data when LMB is enabled

The commit 9996cea75f5a ("lmb/bdinfo: dump lmb info via bdinfo") added support for dumping LMB information as the part of bdinfo. But code itself should be called only when LMB is enabled.
Signed-off-by: Michal Simek michal.simek@amd.com ---
cmd/bdinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 9e23c4dd8fe5..af2e9757db50 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -130,7 +130,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #if CONFIG_IS_ENABLED(MULTI_DTB_FIT) bdinfo_print_num_l("multi_dtb_fit", (ulong)gd->multi_dtb_fit); #endif - if (gd->fdt_blob) { + if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) { struct lmb lmb;
lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob);

On Wed, 7 Sept 2022 at 01:52, Michal Simek michal.simek@amd.com wrote:
The commit 9996cea75f5a ("lmb/bdinfo: dump lmb info via bdinfo") added support for dumping LMB information as the part of bdinfo. But code itself should be called only when LMB is enabled.
Signed-off-by: Michal Simek michal.simek@amd.com
cmd/bdinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

st 7. 9. 2022 v 9:52 odesÃlatel Michal Simek michal.simek@amd.com napsal:
The commit 9996cea75f5a ("lmb/bdinfo: dump lmb info via bdinfo") added support for dumping LMB information as the part of bdinfo. But code itself should be called only when LMB is enabled.
Signed-off-by: Michal Simek michal.simek@amd.com
cmd/bdinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 9e23c4dd8fe5..af2e9757db50 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -130,7 +130,7 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) #if CONFIG_IS_ENABLED(MULTI_DTB_FIT) bdinfo_print_num_l("multi_dtb_fit", (ulong)gd->multi_dtb_fit); #endif
if (gd->fdt_blob) {
if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) { struct lmb lmb; lmb_init_and_reserve(&lmb, gd->bd, (void *)gd->fdt_blob);
-- 2.36.1
Applied. M
participants (3)
-
Michal Simek
-
Michal Simek
-
Simon Glass