Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp368750ybv; Wed, 19 Feb 2020 23:31:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyEKVA8ewr8w8xbA8FHkjvlfQT+MZzbo9GkEQTfpUUMlLqZ5sjfrzNwoiJTZ4zuCmwLubai X-Received: by 2002:a05:6808:5d0:: with SMTP id d16mr1073620oij.45.1582183889884; Wed, 19 Feb 2020 23:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582183889; cv=none; d=google.com; s=arc-20160816; b=NIHY9cB7x/HR5OhUZNwd0IAIDJLXdKlp+d/yUZkWlN32XtpHBaIkfSNDhAUHYXPv4H iOdKIBoMNmArskSJb5qUK2fjH9y2FMclw63OovZs/Nt0rKv8g9YD4Znqpu+FNYMezT3f uDvoSE1YTDrMceQqsS8bJEcvWllv67oVghPwRCnY3Svfnv5sT96Myuu3orvTPcIOL2GQ +ze/U+BAQ8b+FW6g2F47sAJ3x654rNA0vMFe6gEwctvJwDHLY++H0h5oLxifNCRlnOot HkvQpJxBTT5pkX4xZK7pFkKlni/0F7XYq60vtqDBbUOW2lprZuGaF9znXhqTaK/x7NU7 sHnQ== 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=I1Q4qcLGyypieGJHB+UiBv5wZUDSlrxHEMotnfhlr6RcVqSbn8lChoKf6ffh++aBGv OUE/EKpah+rMNiiq0S8Qum7zqQKbYZxB0heoQR0NYn2+mgq9bd+Za3OsfMqn0Wa1coU8 sJa/F8c4bHrxJah333s0653GLuaBH2Q891HC/zdGObAPp2YGvr9iRInkS/0BLIGlqyLy 2LwQfFEofJLZHyB+B/T7aQ+voXSmhqhdEHWYGo1kSB6MveIrZqEsLqGfwxPDlEigNPo7 /m+2P9MvhLlzwpmmmCwd88FzwYujM+4VDS4wu4tDo5Lq1ygJi3qKPIwr0apXLj3mfGfS DlvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=MHF3l+le; 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 a124si10128057oii.138.2020.02.19.23.31.16; Wed, 19 Feb 2020 23:31:29 -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=MHF3l+le; 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 S1726766AbgBTHbJ (ORCPT + 99 others); Thu, 20 Feb 2020 02:31:09 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:41159 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgBTHbJ (ORCPT ); Thu, 20 Feb 2020 02:31:09 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1582183868; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=zxu+g1RYguhrLklxI8OEVw/IzD4sIA+/4uSorGlT5ts=; b=MHF3l+lesk4Yf6/MLNtL5UQmdqBJHHbiEmfp44uo2GFfCJaW/VYBDlfTIcCD9merTH31FLuc 83qnqrg7f8dlfD/mXife6fU1xxPvWoHeIf2sxRssxK+h8K8mFQJhQws7mPkfSbf5Oe8Sv8bA Z6bFjgDdRw54tYrgLwadPprgnMQ= X-Mailgun-Sending-Ip: 104.130.122.26 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 5e4e35bc.7f951b3f9bc8-smtp-out-n01; Thu, 20 Feb 2020 07:31:08 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 15589C447A0; Thu, 20 Feb 2020 07:31:07 +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 1D72AC43383; Thu, 20 Feb 2020 07:31:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1D72AC43383 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrick Daly , robh+dt@kernel.org, frowand.list@gmail.com, pratikp@codeaurora.org, lmark@codeaurora.org, kernel-team@android.com, "Isaac J. Manjarres" Subject: [RFC PATCH] of: of_reserved_mem: Increase limit on number of reserved regions Date: Wed, 19 Feb 2020 23:30:59 -0800 Message-Id: <1582183859-26612-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