Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp103812imj; Thu, 14 Feb 2019 16:18:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IYQHszLw2ldG2ynC5r4rrlli7YySHY2m6m7U9LiFmIHgJ/cT5lBQljK/vrAgtPl4raqa9Oq X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr7015482plq.117.1550189929205; Thu, 14 Feb 2019 16:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189929; cv=none; d=google.com; s=arc-20160816; b=q5F0BQ57VbXPdtK7U6guigW4u2KouW93QZZFPoLUUuNuNc0Yz6fsICczjWF6vYlj2k Zncn9/MS+UnYFyKBx53wdCi1RtMNs5ClUpx5CDaWOWYOlkwbVsPFf8GsJo9o6H3bSEi8 3YR8o1jqSrcFXpQApS/C798KD5gdPfUVTHYmsiMDFDEzge5tIm0yn70uUhsAWziyeCWc ytupbcOgChR4vWbsnTNYCi+wevJNyLg4up1CPTdUpHgYmCooaU7muYfUALc0KliduHtr hqmwmL9/R/ff1hf1Rc6iVtmPKGfz8sz9SHeLt1EJJts3u6vuEaymkhRxL0q0VJuWF+P8 Vuug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4I38YIiHSc0ZdT9iV5cSNguHO1bDo83hHtu+LVNIPe0=; b=sh2KGsO6fbo4UCm0cyr0zxjH3PBTqTXO/Z+v7h6LMueSSRDcoBxQ3FSd13CWGsMpt1 xWdbiBWoW4l0WNw3B1Vl4vAbwILBMymPjFQxxglmqGtwM6nTsO9Lj9nwHjQ7+753AHTW QAGauDi+iIrN705Ztl8sYobNAJV8WKGhN/bVSVqGfXZsUUe9JDG5mwCoQG21b5MEnibz VVee8PJjR0pWPqWbAG3KStAEYdXEAT6S6F44kfZh+38GBpHgUwouLXHq5ujYh4dMiDXB G1YQSyXizpHFV27ZBbCweBD8zANWQZ3KMamdVVa7kmhraDn+nCHxsx846zSqwgVaPJeg uF6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=AyCU4diG; 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 a18si3718382pgj.77.2019.02.14.16.18.33; Thu, 14 Feb 2019 16:18:49 -0800 (PST) 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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=AyCU4diG; 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 S2403888AbfBNOzP (ORCPT + 99 others); Thu, 14 Feb 2019 09:55:15 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38032 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439567AbfBNOxG (ORCPT ); Thu, 14 Feb 2019 09:53:06 -0500 Received: by mail-wr1-f68.google.com with SMTP id v13so6788736wrw.5 for ; Thu, 14 Feb 2019 06:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4I38YIiHSc0ZdT9iV5cSNguHO1bDo83hHtu+LVNIPe0=; b=AyCU4diG7pR/uyn1n4EV9kfiX7l0TJT0nnZXHnIR3e2E4RkDTa2Y5dFkRoR/mrw6gk GlG478tQxFJO/i3vdfL9o4ZkQuPY6e/R28Hw2J4r1FP7gf8Wb55+lNNf2DFssF7Rjb2y U1UH+fFx6PVvbyYrF/cfMISwoxSLZeSjLvWVf0TvzBrEpIXH/Oj0escwhBFCl7NEMAwE QQU6Wvm5i7AaLo7XSJbDtA4QB9cnpw+nNHaooDqsDzYm5axLfa/flzXxH6TgvJpsNGX5 bDK0bvq1mpJPe8Fgxe4PIQ+/uXYrDgVCsMQQX3cE85cwTVyVUlGuoCrJRoJgCdD7bwup KTdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4I38YIiHSc0ZdT9iV5cSNguHO1bDo83hHtu+LVNIPe0=; b=T+anJumxiS8u18Pexpd+x9hycAUF9gKKfLRvIu81nsUSEc1BaP0lWXT3ulUFTfngAn QyCnTQyegsGT57RdiOBg0psg1Cn8ms5xENp6dDQn3TphzPkVnFF70ghvc2DDPl7VkO0o HEHeAzb0tV88GeSw3CcO4PXAw/wmCKkD1HJJPCSS6tBzqdVb/SAtP2S/+im97FiVLpiB ZJSbwUao3l5+jE2zeMceuHGWxywOliuHMtLRVFYUddeOn0pFkcd9VAIXvJaBFuoltBoT 7wKmR5A0agll4f1EKH+xquGAMR6FLFZn0/GFQef1KQYhC+LDGw6dn+FMQWDS65/eTk/l DePQ== X-Gm-Message-State: AHQUAuY9V+wir2gD/NU48UPhaq8mGQEPtQZO2PBAQUAiefVXDXeKdRvN Hu7TOfkylXxSQXHBWACgRoKyKg== X-Received: by 2002:adf:fbc8:: with SMTP id d8mr3121739wrs.318.1550155984808; Thu, 14 Feb 2019 06:53:04 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id y20sm4181005wra.51.2019.02.14.06.53.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:53:04 -0800 (PST) From: Bartosz Golaszewski To: Dmitry Torokhov , Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , David Lechner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v4 18/37] ARM: davinci: aintc: unify error handling Date: Thu, 14 Feb 2019 15:52:12 +0100 Message-Id: <20190214145231.8750-19-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214145231.8750-1-brgl@bgdev.pl> References: <20190214145231.8750-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Instead of dumping stack traces, just print a specific error message in aintc driver. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/irq.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c index 1b2eeddfabd1..2afaf19dc46c 100644 --- a/arch/arm/mach-davinci/irq.c +++ b/arch/arm/mach-davinci/irq.c @@ -91,8 +91,10 @@ void __init davinci_aintc_init(const struct davinci_aintc_config *config) davinci_aintc_base = ioremap(config->reg.start, resource_size(&config->reg)); - if (WARN_ON(!davinci_aintc_base)) + if (!davinci_aintc_base) { + pr_err("%s: unable to ioremap register range\n", __func__); return; + } /* Clear all interrupt requests */ davinci_aintc_writel(~0x0, DAVINCI_AINTC_FIQ_REG0); @@ -125,20 +127,28 @@ void __init davinci_aintc_init(const struct davinci_aintc_config *config) } irq_base = irq_alloc_descs(-1, 0, config->num_irqs, 0); - if (WARN_ON(irq_base < 0)) + if (irq_base < 0) { + pr_err("%s: unable to allocate interrupt descriptors: %d\n", + __func__, irq_base); return; + } davinci_aintc_irq_domain = irq_domain_add_legacy(NULL, config->num_irqs, irq_base, 0, &irq_domain_simple_ops, NULL); - if (WARN_ON(!davinci_aintc_irq_domain)) + if (!davinci_aintc_irq_domain) { + pr_err("%s: unable to create interrupt domain\n", __func__); return; + } ret = irq_alloc_domain_generic_chips(davinci_aintc_irq_domain, 32, 1, "AINTC", handle_edge_irq, IRQ_NOREQUEST | IRQ_NOPROBE, 0, 0); - if (WARN_ON(ret)) + if (ret) { + pr_err("%s: unable to allocate generic irq chips for domain\n", + __func__); return; + } for (irq_off = 0, reg_off = 0; irq_off < config->num_irqs; -- 2.20.1