Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757602AbaLJOhT (ORCPT ); Wed, 10 Dec 2014 09:37:19 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:51745 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1755993AbaLJOhQ (ORCPT ); Wed, 10 Dec 2014 09:37:16 -0500 X-Listener-Flag: 11101 Subject: Re: [PATCH 2/4] irqchip: mediatek: Add support for mt8173 From: Yingjoe Chen To: Arnd Bergmann CC: , Eddie Huang , Matthias Brugger , Rob Herring , Jason Cooper , Mark Rutland , , , Pawel Moll , Ian Campbell , Catalin Marinas , Mark Brown , Will Deacon , , Robert Richter , Sascha Hauer , Kumar Gala , Olof Johansson , Thomas Gleixner , In-Reply-To: <2545975.QDuBFbG7BN@wuerfel> References: <1418208602-35584-1-git-send-email-eddie.huang@mediatek.com> <1418208602-35584-3-git-send-email-eddie.huang@mediatek.com> <2545975.QDuBFbG7BN@wuerfel> Content-Type: text/plain; charset="UTF-8" Date: Wed, 10 Dec 2014 22:37:13 +0800 Message-ID: <1418222233.21309.17.camel@mtksdaap41> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Wed, 2014-12-10 at 12:00 +0100, Arnd Bergmann wrote: > On Wednesday 10 December 2014 18:50:00 Eddie Huang wrote: > > From: Yingjoe Chen > > > > MT8173 intpol have 32 more irq pins, add support to it. > > > > Signed-off-by: Yingjoe Chen > > Signed-off-by: Eddie Huang > > > > How about adding a property for the number of irq pins and leave the > old compatible string in place? I don't think it would be good if > we have to update this driver for each new SoC that uses this > irqchip just to change one number. > > Arnd OK, I'll change to something like this in next version: --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,sysirq.txt +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,sysirq.txt @@ -17,12 +17,17 @@ Required properties: use the same interrupt-cells format as GIC. - reg: Physical base address of the intpol registers and length of memory mapped region. +Optional properties: +- mediatek,intpol-number: The number of interrupts supported by intpol, + default 224 if omitted. + Example: sysirq: interrupt-controller@10200100 { compatible = "mediatek,mt6589-sysirq", "mediatek,mt6577-sysirq"; interrupt-controller; #interrupt-cells = <3>; interrupt-parent = <&gic>; reg = <0 0x10200100 0 0x1c>; + mediatek,intpol-number = <224>; }; Joe.C -- 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/