Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp358121ybj; Thu, 19 Sep 2019 15:41:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXLnDqhflMfxinVEyNa1smcOLRRHIghwUYLrjsb50VVR8iUlzxtzzT927usp/l/0nbneTT X-Received: by 2002:a50:f00c:: with SMTP id r12mr18809577edl.274.1568932881546; Thu, 19 Sep 2019 15:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568932881; cv=none; d=google.com; s=arc-20160816; b=VM5OvMV0CiI3RZ/B3w4KRvpMaMldjg9XHXPIefQ6QxeI8jb3B0BGyxG3ho8FhacmO9 H4DOB5dfajnS5xwaveY6Zz0m1GtOm7cpfSH22QapcK4d1S5mYskrEhMtOyAEUBEUU2EF 6wUH6RoqlDtHHLCnu7uuhmKN4iHP9b8lMxbxeLBIBdEPg5RxgZDurfc/3iOjHMD/Jf6n m6WtWsk0mSkmIvf66u3ZpmA+JV/w33FTIQ5kawV4DEs6EH0X9Im9a+qQRCjL/g6k1dV9 xG8nyyQvPQUvkPn1D/ZjH/CrNYsRE2NaAqvQMVCZ5Tqo4IBz+fFPWc6o2z6sTq053JbU erxw== 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=26uXrjFe61uhIs14YuFCpAhH98xQ/MP8gZOZlvZMDOo=; b=TYAweIluEJFSspF1vaJ2sWQNBRxPty5dUlW2hSB+iWsa+u5hWbRwj6KIcQqjldGv5t fbEH1JpkhUKER6CtceEtLooAAiRgmJFyqT8BvJqb8lyxDdLFtrtw+VEai42xA/c8HV57 eDBjK5/U6AYqBW5t5JApCu+FDiRfv6m2m6uDFLfWsbOP+JZ3dTMBdY5MjuUk0Rl4ALtG KepHHfTQ/l4jBvGBpiCYN71ms3LpLuhjMpRICCSWEqCY7NKO4g6wCix3rU/XDwRcPGcg cSuhxPtxvQeOJCJIqCVErsXFP3h17ZdlqOv9fRwMATCdGUlvQRpsJK7tFzB1n+63ujQM D5SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RU6k9RtD; 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 k6si5317389eji.137.2019.09.19.15.40.58; Thu, 19 Sep 2019 15:41:21 -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=RU6k9RtD; 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 S2389652AbfISWQE (ORCPT + 99 others); Thu, 19 Sep 2019 18:16:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:56030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406225AbfISWP5 (ORCPT ); Thu, 19 Sep 2019 18:15:57 -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 1A8F1217D6; Thu, 19 Sep 2019 22:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568931356; bh=9msoC85KjAkTZ+3NyTfzwtqHQ+ihqnOm2jDZUcXZ8B4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RU6k9RtDnYDp6hnwd/ZQXjTHN0yJgZgx8G9HsN6y8b0QC6BKSP3ukOQaAqn9jbsep L/Bl3jFSletAnzvRIsbsgKXb5uJm59QS7gve5aUpq5ulVxh5amdaSkwTscALLtRX8u uob3kmytgAgyUBehlhDJI6h3zDgYLiISgImleUXg= 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.14 17/59] ARM: OMAP2+: Fix omap4 errata warning on other SoCs Date: Fri, 20 Sep 2019 00:03:32 +0200 Message-Id: <20190919214801.116031978@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919214755.852282682@linuxfoundation.org> References: <20190919214755.852282682@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 cf65ab8bb0046..e5dcbda20129d 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