Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1321614ybj; Fri, 20 Sep 2019 08:36:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy/xWGK3WrfFOrhE7u28la1GOqDvZJhaObz1xvZNVWsMuAeXhTpB7K8w4p6fEz4D2+lx2W X-Received: by 2002:a50:d49c:: with SMTP id s28mr22492269edi.101.1568993811233; Fri, 20 Sep 2019 08:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568993811; cv=none; d=google.com; s=arc-20160816; b=PnfrAaIeUYk3I0N8VhGD2aHzNsFu5zcA56LABBhCDM3PfV6qZ+kSXrm6BwSCYjMkBd 6JlKxj/vh3iVxALe48VhzE+VA7OH/6lNWFQ2xAzvjDD1q5EYZ4LWl3ibQUF3YxikJ2in iSL9EmnWcUFvqv6xwO+gWZrmUHVkAj0j6KvORc5y+ylZ0VnYf/Ef4HZWF5rCjAjAmTo7 6oZ4bLgvhO2wYMROrVerN7FfrqyPagsWOXeGnnNGAPAqy8uVuwle3BQlZfYI/BfKRU/w MwMAbbb93WfEIQ0YGxjqfawJQ+V6ZcSm+A3wGxk7NXfbHcoplNfxkETkU6VsRVLpQF2l 3ryg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lCYFtrCwwochwi2XHADDPA5oF6uj+edRDzcJoBNDBUg=; b=IxyYf1hJ9t/JqkoEewaYdvhfNOfVZhpEHx3mfMn3uONewE4Kp+DWipim9Tp94KSUxI PG/sC/L1OZ1OeEpi5AiEQ3qkbgGoAEa6+JXr1ZLZOvuunPwEmDdpfji5i3EA64003ACq v2hIWtG936v2RvyGFIvD8hpL+n2TtQsgqX5ZSa5lVYILPBs609OwXjzMPw5wcnTzuIaM IREo+FYxEdk4euv2DevJdi2pE0/S4k57tPGeSMSNaCDFQKkSnoKF02NOKJ34wAJuDk8q Dl7hZKWJ9BiX0ZIrzWbSZc2W6I9ItuBOcg1LFRYht8PcVfkGGBVnCrN6EgGAxfv9OepV mgtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IIBAW7ND; 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 y23si1584245edb.208.2019.09.20.08.36.23; Fri, 20 Sep 2019 08:36:51 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=IIBAW7ND; 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 S2407118AbfISWYI (ORCPT + 99 others); Thu, 19 Sep 2019 18:24:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:40112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407101AbfISWYE (ORCPT ); Thu, 19 Sep 2019 18:24:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D623F21929; Thu, 19 Sep 2019 22:24:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568931844; bh=j1iYY3kQO3B/s0ayC98GlO6pXuKeFJHAECORyA+XmSs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIBAW7ND2BBbNaI2zTkLZG+RQEj2DwUwJNbqgLsd2UncjNKf1HXcGlIRzlUdqdvtY YkTVB9tDV9/PRu3OjSeqcDKzUozuXw1aDs4v4xONkvL+qSAayMEK+SjSOfTuHgRg6N CRU3FM8wlqaSgs7ClfBLGiZvqYIYSH8TVd9QzXzw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Sasha Levin Subject: [PATCH 4.4 36/56] ARM: OMAP2+: Fix omap4 errata warning on other SoCs Date: Fri, 20 Sep 2019 00:04:17 +0200 Message-Id: <20190919214758.010171747@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919214742.483643642@linuxfoundation.org> References: <20190919214742.483643642@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit 45da5e09dd32fa98c32eaafe2513db6bd75e2f4f ] We have errata i688 workaround produce warnings on SoCs other than omap4 and omap5: omap4_sram_init:Unable to allocate sram needed to handle errata I688 omap4_sram_init:Unable to get sram pool needed to handle errata I688 This is happening because there is no ti,omap4-mpu node, or no SRAM to configure for the other SoCs, so let's remove the warning based on the SoC revision checks. As nobody has complained it seems that the other SoC variants do not need this workaround. Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/omap4-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 949696b6f17b6..511fd08c784ba 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c @@ -131,6 +131,9 @@ static int __init omap4_sram_init(void) struct device_node *np; struct gen_pool *sram_pool; + if (!soc_is_omap44xx() && !soc_is_omap54xx()) + return 0; + np = of_find_compatible_node(NULL, NULL, "ti,omap4-mpu"); if (!np) pr_warn("%s:Unable to allocate sram needed to handle errata I688\n", -- 2.20.1