From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alban Subject: Re: [PATCH 2/2] MIPS: ath79: add irq chip ar7240-misc-intc Date: Mon, 10 Aug 2015 20:22:01 +0200 Message-ID: <20150810202201.5e813285@tock> References: <1438857805-18443-1-git-send-email-lynxis@fe80.eu> <1438857805-18443-2-git-send-email-lynxis@fe80.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1438857805-18443-2-git-send-email-lynxis-qyMx1GtpvWw@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alexander Couzens Cc: Aban Bedel , linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org, Ralf Baechle , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Thu, 6 Aug 2015 12:43:25 +0200 Alexander Couzens wrote: > The ar7240 misc irq chip use ack handler instead of ack_mask handler. > All new ath79 SoCs use the ar7240 misc irq chip except the ar913x family according to the later documentation. [...] > --- a/arch/mips/ath79/irq.c > +++ b/arch/mips/ath79/irq.c > @@ -315,8 +315,17 @@ static int __init ar7100_misc_intc_of_init( > return ath79_misc_intc_of_init(node, parent); > } > > +static int __init ar7240_misc_intc_of_init( > + struct device_node *node, struct device_node *parent) > +{ > + ath79_misc_irq_chip.irq_ack = ar724x_misc_irq_ack; > + return ath79_misc_intc_of_init(node, parent); > +} > + > IRQCHIP_DECLARE(ar7100_misc_intc, "qca,ar7100-misc-intc", > ar7100_misc_intc_of_init); > +IRQCHIP_DECLARE(ar7240_misc_intc, "qca,ar7240-misc-intc", > + ar7240_misc_intc_of_init); It would be better to keep the same formatting as the surrounding code. Could you keep the IRQCHIP_DECLARE() together with the init function and remove the extra blank line? Alban -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html