Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2708320ybv; Mon, 24 Feb 2020 10:03:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxZl93qtniM0R5hi2TUKfRPdEoCGYBSKvM3XY2RF5IehAryDY1snuW+spmstwWVTD4v0qq/ X-Received: by 2002:a9d:138:: with SMTP id 53mr42597799otu.334.1582567421884; Mon, 24 Feb 2020 10:03:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582567421; cv=none; d=google.com; s=arc-20160816; b=pcA9aRm/wp6+ckOk0+b/gLS+olU94rfM+rEU8mjSeWOCtEnFXnQ4ke1SmD5VJ6hZsu iSvIKwjio/Xh9vSkvQbvLD/ukLlQHY1VK61XlOjOFdp7AZAU/DlieCvGJOYP5LuaLmpi xKxHcHaTckfeWugRnVDY7qKihCfWWQMzKb9hHThXJsUamfldB5fDKOayCYq2NbJe1a1v 2EjCmUw91RuFUJTte8FUeLcoy5oXuSY6lH+WlwGHcFr+nESSd3+YWi6UZhVObPr0sBhn FDSfpjB1aSaX/3QncUAzHNAFwqCPGnisYOeP6L9GR6eD30LuapDD5C1QD4R3D9AgQLkW /apQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=zxu+g1RYguhrLklxI8OEVw/IzD4sIA+/4uSorGlT5ts=; b=qb/XECFFx7STN8jKbvbcL0U+aFkby8H384cSDux4yPyyAQrLqZiEAapxH/DC/JrcWd AQmkNZWGFwsw/IliHW4rvaM7x1+sq5EP7UoZ9Aa/5/QOtQq2M2wmV3uz/Mwvi9jk79k8 2oMXzVW0TCyF+i5bO4Qy1tDVz7BE1K741MSnWqDXn09inlc8tTD+M4u1d+XyLHcQrPYp boZMXvDPiq0KcsUVlC+8wMm1QGdu8OTASBY3VjhSEO4M0+GfvV38f32BqAyHY0kQ7uhy hsi90/naaM9ekHsvq2seyArL6Gg5ihxjQzXO+NeFgeJ6OFsm8Rpr1Iktx+1gN/rR9VP5 +eQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=UeF1DBPu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i124si5433539oif.214.2020.02.24.10.03.25; Mon, 24 Feb 2020 10:03:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=UeF1DBPu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727854AbgBXSC5 (ORCPT + 99 others); Mon, 24 Feb 2020 13:02:57 -0500 Received: from mail27.static.mailgun.info ([104.130.122.27]:32790 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbgBXSC5 (ORCPT ); Mon, 24 Feb 2020 13:02:57 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1582567376; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=zxu+g1RYguhrLklxI8OEVw/IzD4sIA+/4uSorGlT5ts=; b=UeF1DBPuT96LRv1VNicqkFURU71F6MLTtROv1hJxk1DU9WBXjHwlHQ2wB3k726tPZKFFIdzL xgFhJcZAncREtbw50FDOTmE9B3RemvIfoyHtS8HA7WZgWV24AgBAZ7cklAOtAXQsgT62GB2M VwzJc6+XYSuWkMw4SextXmwHZDY= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e540fc6.7f5a853c3fb8-smtp-out-n01; Mon, 24 Feb 2020 18:02:46 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9160EC4479F; Mon, 24 Feb 2020 18:02:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from isaacm-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: isaacm) by smtp.codeaurora.org (Postfix) with ESMTPSA id A56F1C43383; Mon, 24 Feb 2020 18:02:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A56F1C43383 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=isaacm@codeaurora.org From: "Isaac J. Manjarres" To: robh+dt@kernel.org, frowand.list@gmail.com Cc: Patrick Daly , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lmark@codeaurora.org, pratikp@codeaurora.org, kernel-team@android.com, "Isaac J. Manjarres" Subject: [PATCH] of: of_reserved_mem: Increase limit on number of reserved regions Date: Mon, 24 Feb 2020 10:02:32 -0800 Message-Id: <1582567352-4664-1-git-send-email-isaacm@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrick Daly 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. Signed-off-by: Patrick Daly Signed-off-by: Isaac J. Manjarres --- drivers/of/of_reserved_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 6bd610e..1a84bc0 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers/of/of_reserved_mem.c @@ -22,7 +22,7 @@ #include #include -#define MAX_RESERVED_REGIONS 32 +#define MAX_RESERVED_REGIONS 64 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS]; static int reserved_mem_count; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project