From patchwork Tue May 12 07:39:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 6386231 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4F29ABEEE1 for ; Tue, 12 May 2015 07:42:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F2EF20383 for ; Tue, 12 May 2015 07:42:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5E4F20364 for ; Tue, 12 May 2015 07:42:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ys4nW-0001TQ-3S; Tue, 12 May 2015 07:40:14 +0000 Received: from bhuna.collabora.co.uk ([93.93.135.160]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ys4n5-0000YD-NZ for linux-arm-kernel@lists.infradead.org; Tue, 12 May 2015 07:39:48 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sjoerd) with ESMTPSA id C23F560144E Received: by dusk.luon.net (Postfix, from userid 1000) id 02BB926D02; Tue, 12 May 2015 09:39:16 +0200 (CEST) From: Sjoerd Simons To: Rob Herring , Russell King , Tony Lindgren Subject: [PATCH 2/2] ARM: l2c: highbank: Add dummy configure function Date: Tue, 12 May 2015 09:39:15 +0200 Message-Id: <1431416355-7693-3-git-send-email-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431416355-7693-1-git-send-email-sjoerd.simons@collabora.co.uk> References: <1431416355-7693-1-git-send-email-sjoerd.simons@collabora.co.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150512_003947_956070_A33DD492 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Javier Martinez Canillas X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add empty configure function for the highbank l2c to reflect that the cache can't be confured through a SMC. This prevent a useless WARN_ONCE during early boot. Signed-off-by: Sjoerd Simons --- arch/arm/mach-highbank/highbank.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index 231fba0..623eb5e8 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c @@ -60,12 +60,20 @@ static void highbank_l2c310_write_sec(unsigned long val, unsigned reg) reg); } +static void highbank_l2c310_configure(const struct l2x0_regs *regs) +{ +} + static void __init highbank_init_irq(void) { irqchip_init(); if (of_find_compatible_node(NULL, NULL, "arm,cortex-a9")) highbank_scu_map_io(); + + if (IS_ENABLED(CONFIG_CACHE_L2X0)) { + outer_cache.configure = highbank_l2c310_configure; + } } static void highbank_power_off(void)