Received: by 10.223.176.46 with SMTP id f43csp2679338wra; Mon, 22 Jan 2018 01:27:04 -0800 (PST) X-Google-Smtp-Source: AH8x224e0ULGb4hq9ZJM2Wf5T1kbrFSzxhYmqUnQxMfJcwyZUjfkF6NaizoJUXUr387oinaeJXNW X-Received: by 10.98.62.69 with SMTP id l66mr7997684pfa.20.1516613224844; Mon, 22 Jan 2018 01:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516613224; cv=none; d=google.com; s=arc-20160816; b=SXzqzVl0exLEM639ePoXaHYTQxuxHyKW6MqrNuTtK4PPq7lCp7yz43KMdvILoM9c3j FhGIQrmEZ3y94pRgfylivMaoPYvgiccDvPTsUogaTaaL/p0AN+z5Fdd+0cXxHA+a4KB3 jMc4bXFZWHXNErreQYqR72qdj1qctufX5OtyFW9ncXCChA0WPkOxVjc1kEnttWRoLhGC +T7FmX/gQO4874hOSTYdyKIKhNAwxcd0HGgjCp0zGIsmZLjtfBRrWAmBnY26ef2GPc/p TaXnJj0vlnFR153O5zKzUGWqprEUPiW8L/uavCWkoHh943M4Ix+t0CygzOkpL+wmySzA ioMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Sxtu6i6nnPE3lnoeDk/1a73jerFGT3sTG1yuzoC5sT8=; b=cLO21guMuHBshvug3gZ746Kf4YjL/7evfM75G2z1vLPea7ZZ4YHt2P10jlegeMIZiV 9M8yHUtZIqIiP/fgDMyOC3wnCsmDFf1HqkPGHhO32jovUyjAYGROMg6Ax0KoWLiEEEAx hJ5j23ZDU3y0/nfVRbM4SNkKpzCfAQjQQmAOK99KUHxNWp/UtZYqte4Zc0y6mrcdUrLf CF5BhRijaYwEB3aTWIDr9n5KFjSrXIHzWOLpyk+W1S2ZrBwEYGszBphTo9IpjJTnP2jE sNX/R/C3sLpedcifdyJuw5ydUe5LpsSyavVL+pk+gJB2VTVstf9K9zyWtjYlgcwirJXU xbZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MWAp2mQ2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t64si13618728pgb.300.2018.01.22.01.26.50; Mon, 22 Jan 2018 01:27:04 -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=@linaro.org header.s=google header.b=MWAp2mQ2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752413AbeAVJ0Z (ORCPT + 99 others); Mon, 22 Jan 2018 04:26:25 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34391 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbeAVJ0W (ORCPT ); Mon, 22 Jan 2018 04:26:22 -0500 Received: by mail-wr0-f194.google.com with SMTP id 36so7825114wrh.1 for ; Mon, 22 Jan 2018 01:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Sxtu6i6nnPE3lnoeDk/1a73jerFGT3sTG1yuzoC5sT8=; b=MWAp2mQ2zwg4p+WhqKC0KvRih84MqQ5GT3FWdpWMGwL5bYeQEPAHJYbwVf8S/Epv8t Ao3h+/Pj+xdW2Us8PLCv22fWIBUsNXJDWSzEy790nMGhGWkr3AuQW/BKtFKKKu6DEZho xRKjKfLxyifhwfFAIzoW5M2yYI8J+F2pwnFhw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Sxtu6i6nnPE3lnoeDk/1a73jerFGT3sTG1yuzoC5sT8=; b=R+9Gz5mE6b9kbsJAPOi489qtnNBUOZA2aK9I9uz1T84EGumd0Laux6+uOr2Kg2KriQ 9K5ORAbipXOq9PAQRhf/vhgDfeWiPbh4FXHD+gJVspI97dGTNJDNKupeoXEDOYQ+0QGW Ac2Q5w01eA00GaWy4E2zQMDQATv2AU1htTD5ONFdGN5+6YMG7pSbPeEkerdLCp3h42Rf 3z12cGp/6r1R9sbK6833Dpm5WbbYUHRhIVBJX3mQxPlVpRxssXrve3jQuGhFAtBKpdhz f3Iw4C+2WSXuwzkPVgnBJfw2uRBUu2iVLfD9LrOue5qmekABP0p97Yl4oBkH7YZ6qYAh N+zA== X-Gm-Message-State: AKwxytcagtq5q7VctAEsnpkXd9A1EjwJ8vpS89NOKHY0ZPZKKfbRGaXt QieFJlO+U2lOcV2Sd2VTFxIF+g== X-Received: by 10.223.160.129 with SMTP id m1mr5595261wrm.119.1516613181487; Mon, 22 Jan 2018 01:26:21 -0800 (PST) Received: from dell ([2.27.167.60]) by smtp.gmail.com with ESMTPSA id 63sm9690964wms.46.2018.01.22.01.26.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jan 2018 01:26:20 -0800 (PST) Date: Mon, 22 Jan 2018 09:26:17 +0000 From: Lee Jones To: Marc Zyngier Cc: Paul Cercueil , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Thomas Gleixner , Jason Cooper , Daniel Lezcano , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 6/9] irqchip: Add the ingenic-tcu-intc driver Message-ID: <20180122092617.36ggqqike4gwwgrd@dell> References: <20180101143344.2099-1-paul@crapouillou.net> <20180110224838.16711-1-paul@crapouillou.net> <20180110224838.16711-6-paul@crapouillou.net> <58349291-93cd-f803-52a9-f88120ace4dc@arm.com> <1515687945.2170.1@smtp.crapouillou.net> <20180120130649.7f326f75@why.wild-wind.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180120130649.7f326f75@why.wild-wind.fr.eu.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 20 Jan 2018, Marc Zyngier wrote: > On Thu, 11 Jan 2018 17:25:45 +0100 > Paul Cercueil wrote: > > > Hi Marc, > > > > >> +static int __init ingenic_tcu_intc_of_init(struct device_node > > >> *node, > > >> + struct device_node *parent) > > >> +{ > > >> + struct irq_domain *domain; > > >> + struct irq_chip_generic *gc; > > >> + struct irq_chip_type *ct; > > >> + int err, i, num_parent_irqs; > > >> + unsigned int parent_irqs[3]; > > > > > > 3 parent interrupts? Really? How do you pick one? Also, given the > > > useage > > > model below, "int" is the wrong type. Probably should be u32. > > > > See below. > > > > >> + struct regmap *map; > > >> + > > >> + num_parent_irqs = of_property_count_elems_of_size( > > >> + node, "interrupts", 4); > > > > > > Nit: on a single line, as here is nothing that hurts my eyes more than > > > reading something like( > > > this). Also, 4 is better expressed as sizeof(u32). > > > > That will make checkpatch.pl unhappy :( > > And I don't care about checkpatch. I maintain the irqchip stuff, while > checkpatch doesn't. Hence, I win. num_parent_irqs = of_property_count_elems_of_size(node, "interrupts", 4); Everybody wins! -- Lee Jones Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog