Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759241Ab3GRQzV (ORCPT ); Thu, 18 Jul 2013 12:55:21 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:57546 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757578Ab3GRQzU (ORCPT ); Thu, 18 Jul 2013 12:55:20 -0400 Message-ID: <1374166518.1949.122.camel@joe-AO722> Subject: Re: [PATCH 1/3] misc: Add crossbar driver From: Joe Perches To: Sricharan R Cc: linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, tony@atomide.com, linux@arm.linux.org.uk, nm@ti.com, rnayak@ti.com, balbi@ti.com Date: Thu, 18 Jul 2013 09:55:18 -0700 In-Reply-To: <1374165830-6367-2-git-send-email-r.sricharan@ti.com> References: <1374165830-6367-1-git-send-email-r.sricharan@ti.com> <1374165830-6367-2-git-send-email-r.sricharan@ti.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1322 Lines: 35 On Thu, 2013-07-18 at 22:13 +0530, Sricharan R wrote: > Some socs have a large number of interrupts/dma requests to service > the needs of its many peripherals and subsystems. All of the > requests lines from the subsystems are not needed at the same > time, so they have to be muxed to the controllers appropriately. > In such places a interrupt/dma controllers are preceded by an > IRQ/DMA CROSSBAR that provides flexibility in muxing the device > requests to the controller inputs. [] > diff --git a/drivers/misc/crossbar.c b/drivers/misc/crossbar.c [] > +int crossbar_unmap(struct device_node *cbdev_node, unsigned index) [] > + list_for_each_entry(cbdev, &cb_devlist, node) { > + if (strcmp(cbdev->name, tmp.cb_name)) > + continue; [] > + dev_warn(cbdev->dev, > + "unmapped int_no %x mapped to cb %x\n", > + tmp.int_no, tmp.cb_no); > + return 0; [] > + dev_warn(cbdev->dev, "%s cb entry %d not found\n", > + __func__, tmp.cb_no); > + return -ENOENT; Why does this function always emit a dev_warn before return? Maybe the first should be dev_info? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/