Re: [PATCH] of: make MAX_RESERVED_REGIONS configurable

From: Calvin Zhang
Date: Mon Nov 15 2021 - 02:14:51 EST


On Sun, Nov 14, 2021 at 10:40:29PM -0800, Randy Dunlap wrote:
>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 for the review. I will send a v2.
>
>thanks.
>--
>~Randy
>