Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp100393imj; Thu, 14 Feb 2019 16:13:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IbUnqvJHCS1xKXd1njxfq1t8GMTiuY+Tu6IepJSQ8qSslbVyVXrup920n0s0pKFtfmA6z4x X-Received: by 2002:a65:628e:: with SMTP id f14mr2573820pgv.193.1550189634954; Thu, 14 Feb 2019 16:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189634; cv=none; d=google.com; s=arc-20160816; b=tVjU72MfMd/VoZN7k58j+vLxNTUEzVM46YEsSuKN3ndEjYQdwJacRNNX8SbtEKnpKx suSDfKuvTUlB7P/dmD2uvdPv83k5ZmGUBVI1SkLIGe1vfa+zrO2D0uGdbSF9vlQd+lss qKMMhPU4f/D6uACEVIDp46tRZtJuKRcF5p0XrJSqXkikaOCP5BAFoqJtcJ4cfkxJx6To SIqu7RptieLFE5lxxMObZdFlSO07P7szfqmrirsY2+imOcBpqPhpm4h8VE6J3no0dcpE nm1cDRPC3KkQTLAQu7N+NujjVEPwITlXuBPNZQ8v1kWk6o3aOFp41UEKfTAjiaQ7eQSM bSeg== 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=B4SJAgxGTa64FJdlSVfppZLdm94nwsUmmnlWWj2uXAQ=; b=gVL1mKni/vjcAu9+hTIqkDt6uID75ATZK8HLBs1/4X2y/2mPk4Q5zHidDDVCfkyOzs uG4u5uQsvd0x2XhahSNY+WFziJUfYJzS9QMEdSSWIdBlXwtmpDbCVN/nP1NJdO7hjFuR PfwM1myrdoXrICnOlrBkR8Nkd0PA1qnPS0xbv/cjfqMJmSHz2d4pTIAfNELgcmCDLmtK CqGtq0YWxWadToRZpI/7FwyxkuqNaHEbLlG05A21kMNhY+D3G0leP7D5WCnDb59IU+JG mOUbNV5QXOyYfvfZJJme9ipx7UzgYHrL+vxjJ0rsZlUpeNuA1K7UrNSqA+sYrDIC8Tog HZLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="SY/FJts2"; 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 t3si3987895pgo.585.2019.02.14.16.13.39; Thu, 14 Feb 2019 16:13:54 -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="SY/FJts2"; 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 S2501924AbfBNOx3 (ORCPT + 99 others); Thu, 14 Feb 2019 09:53:29 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37478 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501890AbfBNOxW (ORCPT ); Thu, 14 Feb 2019 09:53:22 -0500 Received: by mail-wr1-f66.google.com with SMTP id c8so6789753wrs.4 for ; Thu, 14 Feb 2019 06:53:21 -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=B4SJAgxGTa64FJdlSVfppZLdm94nwsUmmnlWWj2uXAQ=; b=SY/FJts2nGo8N9rDrnd0CygEqjRdybYQygidnGL/IYHQtPPXRYGBsv5Fe4ze5JyTmX LzPmTBuSk7eilzhaXEJ7ZO/+xeEricwQEblfaWYF8J32tAPyCEZIcpX+aTMCjDm8/3v/ 75cGmvxSWQFfP34bohqvdP56DoiHHRl1ya6G/XbSRVdwhFijoQ7evoaVatBv1yKSUuaY FZqlREPOmJkS7XA8OQB/Aq3vEkaRbILzp/sMZZ5Mkn5s44XJEueVVFm3HNqcdjnu8A6p 5Pa4YVxeGRpOxcX3/6O4S8d1l0Rvb2eb8wNhon4dNjwoOMA55TykqDLdsG192ubGTT0R N5Qg== 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=B4SJAgxGTa64FJdlSVfppZLdm94nwsUmmnlWWj2uXAQ=; b=hKfN2YUT2WT6kIHNqne5C0kve4oxAzWP1IwAFVeE6aMDAFeAB7Wj2WeqDa6zQhC6VB AsX4KHCNENB62DyAkoU41byuglh6BsR4BLCpIoBsbyxeopDElZfTwVXL+NPEyhMl83cf sqVMTNk1xqLt/4ghGJw/yQsYMK4UBP2XvzoA0mq7QQHePjy+SVkgZ3LMA3NFRiuJsBPM zLT9TzO3H4PlYjRLbKu9enF2n25SAlWrmeknSpTdbW/tYx1z7Bsa5OvNq2atgdkTJiUY 4/0z4mIBS2qHRbHeopH6i4CeG+lpqFSnVpLA8huV+PglgZfM/bqxAwu8Vi9Lx2SRIdGV YoKg== X-Gm-Message-State: AHQUAuZJDrMqRYxuv/WnD4Kud4ydVn31Vlm5OTplR7PG9tGxWayL9wxq C0QbsI7uuQn8DJP2XeT3BihjyA== X-Received: by 2002:a05:6000:1287:: with SMTP id f7mr3298876wrx.203.1550156000905; Thu, 14 Feb 2019 06:53:20 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:53:20 -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 32/37] ARM: davinci: cp-intc: unify error handling Date: Thu, 14 Feb 2019 15:52:26 +0100 Message-Id: <20190214145231.8750-33-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/cp_intc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c index 25221dfe8a20..1bf11fa8be76 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c @@ -177,8 +177,10 @@ davinci_cp_intc_do_init(const struct davinci_cp_intc_config *config, davinci_cp_intc_base = ioremap(config->reg.start, resource_size(&config->reg)); - if (WARN_ON(!davinci_cp_intc_base)) + if (!davinci_cp_intc_base) { + pr_err("%s: unable to ioremap register range\n", __func__); return -EINVAL; + } davinci_cp_intc_write(0, DAVINCI_CP_INTC_GLOBAL_ENABLE); @@ -210,8 +212,9 @@ davinci_cp_intc_do_init(const struct davinci_cp_intc_config *config, irq_base = irq_alloc_descs(-1, 0, config->num_irqs, 0); if (irq_base < 0) { - pr_warn("Couldn't allocate IRQ numbers\n"); - irq_base = 0; + pr_err("%s: unable to allocate interrupt descriptors: %d\n", + __func__, irq_base); + return irq_base; } /* create a legacy host */ @@ -220,7 +223,7 @@ davinci_cp_intc_do_init(const struct davinci_cp_intc_config *config, &davinci_cp_intc_irq_domain_ops, NULL); if (!davinci_cp_intc_irq_domain) { - pr_err("cp_intc: failed to allocate irq host!\n"); + pr_err("%s: unable to create an interrupt domain\n", __func__); return -EINVAL; } -- 2.20.1