Re: [PATCH v2] of: make MAX_RESERVED_REGIONS configurable

From: Calvin Zhang
Date: Mon Nov 15 2021 - 19:22:12 EST


On Mon, Nov 15, 2021 at 08:05:45AM -0600, Rob Herring wrote:
>On Mon, Nov 15, 2021 at 1:33 AM Calvin Zhang <calvinzhang.cool@xxxxxxxxx> wrote:
>>
>> MAX_RESERVED_REGIONS has changed several times. Max reserved regions
>> count grows bigger as more SOC subsystems require reserved regions.
>>
>> Add a Kconfig for it so that when properly configured, the static
>> reserved_mem array consumes less memory on systems with few reserved
>> regions.
>
>Please read prior discussions:
>
>https://lore.kernel.org/all/?q=of+MAX_RESERVED_REGIONS
>
>And these 2 in particular:
>
>https://lore.kernel.org/all/CAL_JsqJQcWsguwfehAoaRf4o-2VqXxSzKzTqg7s4+N1bp=6V5Q@xxxxxxxxxxxxxx/
>https://lore.kernel.org/all/CAL_JsqLGvUYQmCGXLgSO+6kFj2i87dpaTbMGbyu5oMt=eeu35A@xxxxxxxxxxxxxx/
>
OK. I will try to make the array dynamic.

Thanks,
Calvin