Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11e0e50e authored by Patrick Daly's avatar Patrick Daly Committed by Isaac J. Manjarres
Browse files

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: default avatarPatrick Daly <pdaly@codeaurora.org>
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 0dccdc03
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -22,7 +22,7 @@
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/memblock.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 struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS];
static int reserved_mem_count;
static int reserved_mem_count;