Re: [PATCH] of: make MAX_RESERVED_REGIONS configurable

From: Randy Dunlap
Date: Mon Nov 15 2021 - 01:40:41 EST


On 11/14/21 10:35 PM, Calvin Zhang wrote:
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 80b5fd44ab1c..591b2c4d9dd0 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -73,6 +73,16 @@ config OF_IRQ
config OF_RESERVED_MEM
def_bool OF_EARLY_FLATTREE
+config OF_MAX_RESERVED_REGIONS
+ int "Maximum count of reserved regions"
+ depends on OF_RESERVED_MEM
+ default 64
+ help
+ Reserved regions in /reserved-memory node includes static
+ reservations with fixed location and dynamic ones for device
+ cma regions. This parameter sets the maximum number of reserved

CMA

(as is used in mm/Kconfig)

+ regions in the system.

Also, all 4 lines of the help text should be indented with
one tab + 2 spaces, not all spaces.


thanks.
--
~Randy