Received: by 10.223.185.116 with SMTP id b49csp621710wrg; Fri, 23 Feb 2018 04:17:16 -0800 (PST) X-Google-Smtp-Source: AH8x227xpJoZxI8KoRlJJuuniVE1jTrMGlNlY1vbIGMrr93o5wef/NcKAS4S4H3Xm4qt2ckmYN2H X-Received: by 2002:a17:902:8a91:: with SMTP id p17-v6mr1521035plo.375.1519388236879; Fri, 23 Feb 2018 04:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519388236; cv=none; d=google.com; s=arc-20160816; b=tIX+3+OYQnsGoDKM4NHyhQIkdD/3YoTDNEZgkmdChXZ6bD2B5vflhSCn5SzqzbyuGI +vGBq1Wk/I8WevG4Sw4yxutj4h63eBSPh+kOaWL12Wi+8cTDBAn21OdbQw96X9S2LtAx Q8SI9pQECUkyUt7azmyxl5+aap8TSc+jrWr9vWFizkjWPnDqQuxBhIHdNza4eV5JqPhO vdh4HQNF/BcoQ+rUsVG3ymUjcnCQhX0Wxxmp+cXnEXS/cg++nLX9JhDvnYJh55MR9+Qj gURqvtFKq3TaqM30Lh6zjGmV6Ac8SMJulrdkKQ9KXHuDSZqIiprzf6HrFO3LRigz7qsL sNQA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=8f844QalYj8CSkSyWSdsdsGliAMWGAadWeNdvrtMIIk=; b=NZPqwu04+9D3naeiEQrWrpIGUw8J7OnR7dfRdANa1D0o8r43K1o/QFqitXkJWYlU9r FAvoL6LLlvqyERsJzZNuX7IpD65IQuEsA526yaKgS8blzu7mrXdyUvnN/QEoU6xtouZB iruYLSQYTog21cCc4VmJGhIHQZDND3SQYFcP7snZ2F8cw2rKZudqY35iNbEAJw4yvMfV vUSzKGYLtKlEtMXBHPzEJhjJOnF+A4kKVC73zAWN0SRPkc6T03mO3Yg29toZHWflGW/L B4kMNKeAVQT7X9ohaXcQHUjIBnYM7BX56SwbrscidzpwGPVJcLYZB7yB26kGVR0sncF1 3rcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@prevas.dk header.s=ironport2 header.b=fUI/3eWT; 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 f3-v6si539089plb.717.2018.02.23.04.17.02; Fri, 23 Feb 2018 04:17:16 -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=fail header.i=@prevas.dk header.s=ironport2 header.b=fUI/3eWT; 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 S1751435AbeBWMQM (ORCPT + 99 others); Fri, 23 Feb 2018 07:16:12 -0500 Received: from mail02.prevas.se ([62.95.78.10]:43003 "EHLO mail02.prevas.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750935AbeBWMQL (ORCPT ); Fri, 23 Feb 2018 07:16:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=2115; q=dns/txt; s=ironport2; t=1519388171; x=1550924171; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=N5hbFc/57O6JO+Oc9rFXlAdoi/EztFiXKvazg2AjZ5k=; b=fUI/3eWTkCoGMD6kFRhYkVB1nSg6RhWG9guCERx4+7+ELhzS8b+D0Vd8 qm21JPnBVQKM8ZEskCluhmJdKAPbipC+3TrfxM7ggrsjPooJJL30/VBi2 lkizYq2F6Pfs5uoW7BW24Xyj3ubBT0iw1uMVFBgVSVNHGnBultpCJ2TjS c=; X-IronPort-AV: E=Sophos;i="5.47,383,1515452400"; d="scan'208";a="3117698" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Feb 2018 13:16:09 +0100 Received: from [172.16.11.22] (172.16.8.31) by smtp.prevas.se (172.16.8.103) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 23 Feb 2018 13:16:08 +0100 Subject: Re: [PATCH RFC v2 1/3] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs To: Marc Zyngier , Lina Iyer , , CC: , , , , References: <20180202142200.6229-1-ilina@codeaurora.org> <20180202142200.6229-2-ilina@codeaurora.org> From: Rasmus Villemoes Message-ID: <02e2a5f9-8ecc-76b1-a3cc-c95b215e8fe1@prevas.dk> Date: Fri, 23 Feb 2018 13:16:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.8.31] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-02 15:58, Marc Zyngier wrote: > Hi Lina, > > On 02/02/18 14:21, Lina Iyer wrote: >> From : Archana Sathyakumar >> >> + >> +static int qcom_pdc_translate(struct irq_domain *d, >> + struct irq_fwspec *fwspec, unsigned long *hwirq, unsigned int *type) >> +{ >> + if (is_of_node(fwspec->fwnode)) { >> + if (fwspec->param_count < 3) >> + return -EINVAL; > > Why 3? Reading the DT binding, this is indeed set to 3 without any > reason. I'd suggest this becomes 2, encoding the pin number and the > trigger information, as the leading 0 is quite useless. Yes, I know > other examples in the kernel are using this 0, and that was a > consequence of retrofitting the omitted interrupt controllers (back in > the days of the stupid gic_arch_extn...). Don't do that. > Hi Marc I'm about to send out a new revision of the ls-extirq patchset, and thanks to you pointing me to these patches, I've read the comments on the various revisions of this series and tried to take those into account. But the above confused me, because in response to my first RFC (https://patchwork.kernel.org/patch/10102643/) we have On 2017-12-08 17:09, Marc Zyngier wrote: > On 08/12/17 15:11, Alexander Stein wrote: >> Hi Rasmus, >> >>> + >>> +Required properties: >>> +- compatible: should be "fsl,ls1021a-extirq" >>> +- interrupt-controller: Identifies the node as an interrupt controller >>> +- #interrupt-cells: Use the same format as specified by GIC in arm,gic.txt. >> >> Do you really need 3 interrupt-cells here? As you've written below you don't >> support PPI anyway the 1st flag might be dropped then. So support just 2 cells: >> * IRQ number (IRQ0 - IRQ5) >> * IRQ flags > > The convention for irqchip stacked on top of a GIC is to keep the > interrupt specifier the same. It makes the maintenance if the DT much > easier, and doesn't hurt at all. Personally, I'd actually prefer the simpler interrupt specifiers without a redundant 0. Maybe I'm just missing some difference between this case and the ls-extirq one? Thanks, Rasmus