Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp992372ybj; Fri, 20 Sep 2019 03:22:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwr5ev9/2T6OWr4n8DhBMYPToZidNuYFDTSgKNrWKygCzs2rPA9qAaLsk8BQbVoz6AiC9QO X-Received: by 2002:aa7:c306:: with SMTP id l6mr7636081edq.78.1568974976286; Fri, 20 Sep 2019 03:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568974976; cv=none; d=google.com; s=arc-20160816; b=QPlqE7u2a4ohbNUnHh8a/W4lg8qxmKpSUxfYSUE2rPpw708GnucD8i77iWf/nxZHAg rSfZOvwazpwf0egy9zpj+ijW2whm5UYIBOd+e3rtTiMNdbh3WN2nQZgW8XopHBK1kB1P 8hGCr/viKlt/dUqCFIoOGfyE+vAzbbPaULRz5ecMCRzqR9h+lysPHrnM8kmkl5gOmNT/ cgAHN15eQp43hS8ZpYgYvrspA+yybo61gY7uF92+QatqczDDllMi2bzaAbUxlguITlr7 UKXjefV9RdnPHyER+pns+krLEuVVcZxC13zDlXwoWFlf+XOfvfl0BOX4it7ljw1gx9TM b7UA== 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=rbJda7Awvjha27pe3liMW8J1InN9qpFLKxXN4UlR/Mo=; b=bPAL7JDcVT6schceePzsal86ewHMnbpNM0L+6psRnG4o+trlgNPRXbt4748fOcYHkK C5fKHyy0EqgJTvhAGt3aUfbdGgfuzPQTMK7ZCPNE2f4+XhloJz4QVI260ztOidwLE0mS E8ODCrLykyuCZ3MYWRrb7I72gwe/lhaoFjlJtCqBAYgcaRutrgrtVAccPGVzgJrUrucv dvG/GaXwnzlyfotFnI/qrUcO+zBUanFw9WJRgof5erlj8X9GAcKXwDHVg+24JvzaU2EX bc/zUpKYCCiic0Vwn7Ug3ZGAp4WdFNXLC8EUpXgCntlaiIsZQtOnOm7xZkRlEgf/yVWt 7n9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ByNuIaYc; 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 k16si801115ejc.134.2019.09.20.03.22.32; Fri, 20 Sep 2019 03:22:56 -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=ByNuIaYc; 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 S2393680AbfISWMp (ORCPT + 99 others); Thu, 19 Sep 2019 18:12:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:51702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393668AbfISWMn (ORCPT ); Thu, 19 Sep 2019 18:12:43 -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 5B07921928; Thu, 19 Sep 2019 22:12:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568931162; bh=qmsEjHrRZCpwx/XrFU4kSpvkC/FoRbT7gOt7GZYWx0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ByNuIaYctnUZ70rd9JjXH3wOjgMqX0pNrTQrj91wR7VlXkq5xPibFrBrMoAyL6PRz iYOtE+aFd4mGcRxsfsvWD0Yic3HVpw4LOLdmqw/JeOquhN5Ub0nLmB4GUPHMgDJ91a UMgGgVStNyj+4oNXkL81TObEOv8cTZQ48Q3/KKFs= 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.19 25/79] ARM: OMAP2+: Fix omap4 errata warning on other SoCs Date: Fri, 20 Sep 2019 00:03:10 +0200 Message-Id: <20190919214810.172247189@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919214807.612593061@linuxfoundation.org> References: <20190919214807.612593061@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 b226c8aaf8b1c..7074cfd1ff413 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