From mboxrd@z Thu Jan 1 00:00:00 1970 From: tglx@linutronix.de (Thomas Gleixner) Date: Sat, 25 Oct 2014 21:42:05 +0200 (CEST) Subject: [PATCH 1/3] genirq: Allow the irqchip state of an IRQ to be save/restored In-Reply-To: References: <1414232097-4328-1-git-send-email-marc.zyngier@arm.com> <1414232097-4328-2-git-send-email-marc.zyngier@arm.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, 25 Oct 2014, Thomas Gleixner wrote: Bah, hit send way too fast :) > On Sat, 25 Oct 2014, Marc Zyngier wrote: > > +int irq_get_irqchip_state(unsigned int irq, int state) get_state(state) does not make sense. get_state(which) probably more so. And 'which' wants to be an enum btw. > > + chip_bus_lock(desc); > > + val = chip->irq_get_irqchip_state(data, state); > > Hmm. What's the irq_get_irqchip_state() callback supposed to return? Either an error code or a boolean value, right? Does not mix very well I think. int irq_get_irqchip_state(unsigned int irq, enum xxx which, bool *val) Might be a more clear interface. Thanks, tglx