From patchwork Thu Jan 28 01:27:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 8145501 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 A5909BEEE5 for ; Thu, 28 Jan 2016 01:28:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B372920256 for ; Thu, 28 Jan 2016 01:28:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED57520253 for ; Thu, 28 Jan 2016 01:28:47 +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 1aObMm-0000p4-9l; Thu, 28 Jan 2016 01:27:20 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aObMi-0000lR-UD for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 01:27:17 +0000 Received: from trochilidae.toradex.int (75-146-58-181-Washington.hfc.comcastbusiness.net [75.146.58.181]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 5A7A55C08C2; Thu, 28 Jan 2016 02:25:37 +0100 (CET) From: Stefan Agner To: linux@arm.linux.org.uk Subject: [PATCH] ARM: don't print missing L2 cache as error Date: Wed, 27 Jan 2016 17:27:19 -0800 Message-Id: <1453944439-1070-1-git-send-email-stefan@agner.ch> X-Mailer: git-send-email 2.7.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1453944338; bh=lEwq1cUK5A2rwAZCv3LKn2whNJbe00SWNNNDiQMtux4=; h=From:To:Cc:Subject:Date:Message-Id; b=UK0my/b8u/gNzzu/Wce8BPxvQR3lQXOHmhfb/QkFbjfunMNuRPAImL+bGXq3e42TOWPJCtlNaBEOEOjZD6JzeYiNLlb8O5L3y+VA6BITj5veikqWoEuRnv9pLxnNJYAiCVqNnEhQDauBG5rW8B3xgSrPCCC0uXRzS5LqoMvSBgI= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160127_172717_144353_0E8C3496 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Agner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 Not having a L2 cache controller is a shame, but not an error. Avoid printing an error message if L2 controller initialization returns with ENODEV. Signed-off-by: Stefan Agner --- Hi Russel, We use a multiplatform kernel for two similar SoC's, one with L2 cache the other without. Maybe silently ignore -ENODEV would be an option too, not sure what is preferred here. -- Stefan arch/arm/kernel/irq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 1d45320e..f80c480 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -95,7 +95,9 @@ void __init init_IRQ(void) outer_cache.write_sec = machine_desc->l2c_write_sec; ret = l2x0_of_init(machine_desc->l2c_aux_val, machine_desc->l2c_aux_mask); - if (ret) + if (ret == -ENODEV) + pr_info("L2C: no device found\n"); + else if (ret) pr_err("L2C: failed to init: %d\n", ret); }