1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-22 10:31:56 +02:00
Files
u-boot-megous/include
Patrick Delaunay 94c8da2121 lmb: Fix LMB_MEMORY_REGIONS flag usage
Remove test on CONFIG_LMB_MEMORY_REGIONS introduced by commit
7c1860fce4 ("lmb: Fix lmb property's defination under struct lmb").

This code in lmb_init() is strange, because if CONFIG_LMB_USE_MAX_REGIONS
and CONFIG_LMB_MEMORY_REGIONS are not defined, the implicit #else is empty
and the required initialization is not done:
lmb->memory.max = ?
lmb->reserved.max = ?

But this setting is not possible:
- CONFIG_LMB_USE_MAX_REGIONS not defined
- CONFIG_LMB_MEMORY_REGIONS not defined
because CONFIG_LMB_MEMORY_REGIONS and CONFIG_LMB_RESERVED_REGIONS are
defined as soon as the CONFIG_LMB_USE_MAX_REGIONS is not defined.

This patch removes this impossible case #elif and I add some
explanation in lmb.h to explain why in the struct lmb {} the lmb
property is defined if CONFIG_LMB_MEMORY_REGIONS is NOT defined.

This patch also removes CONFIG_LMB_XXX dependency on CONFIG_LMB as these
defines are used in API file lmb.h and not only in library file.

Fixes: 5e2548c1d6 ("lmb: Fix LMB_MEMORY_REGIONS flag usage")
Reported-by: Mark Millard <marklmi@yahoo.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Acked-by: Michal Simek <michal.simek@amd.com>
2023-04-06 15:08:46 -04:00
..
2023-04-05 10:54:47 -04:00
2023-02-07 14:33:50 -05:00
2023-02-09 16:32:25 -05:00
2023-03-30 15:09:59 -04:00
2023-04-03 16:45:41 -04:00
2023-02-19 21:15:15 +01:00
2023-02-06 13:04:52 -05:00
2023-02-09 16:32:25 -05:00
2023-01-16 18:26:50 -05:00
2023-01-11 15:02:24 -05:00
2023-01-20 12:27:06 -05:00
2023-03-13 13:53:01 +01:00
2023-01-27 14:47:57 -05:00
2023-04-06 15:08:46 -04:00
2023-02-06 13:04:53 -05:00
2023-01-31 22:02:27 +09:00
2023-03-02 17:45:58 -05:00
2023-02-02 14:44:53 -05:00
2023-01-23 18:11:40 -05:00
2023-01-16 18:01:10 +08:00
2023-02-10 07:41:40 -05:00
2023-02-11 12:22:34 -05:00