FROMLIST: of: of_reserved_mem: Increase limit on number of reserved regions

Certain SoCs need to support a large amount of reserved memory
regions. For example, Qualcomm's SM8150 SoC requires that 20
regions of memory be reserved for a variety of reasons (e.g.
loading a peripheral subsystem's firmware image into a
particular space).

When adding more reserved memory regions to cater to different
usecases, the remaining number of reserved memory regions--12
to be exact--becomes too small. Thus, double the existing
limit of reserved memory regions.

Bug: 149547278
Link: https://lore.kernel.org/lkml/1582183859-26612-1-git-send-email-isaacm@codeaurora.org/
Change-Id: Ic89bf3610f177386e9a110895e559975ba515023
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Patrick Daly
2020-02-19 23:30:59 -08:00
committed by Isaac J. Manjarres
parent 2dbb045181
commit bb6f25851f

View File

@@ -22,7 +22,7 @@
#include <linux/slab.h>
#include <linux/memblock.h>
#define MAX_RESERVED_REGIONS 32
#define MAX_RESERVED_REGIONS 64
static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS];
static int reserved_mem_count;