Re: [PATCH 1/2] irqchip: add lpc18xx gpio pin interrupt driver

2016-02-27 Thread Joachim Eastwood
Hi Thomas, On 26 February 2016 at 11:26, Thomas Gleixner wrote: > On Thu, 25 Feb 2016, Joachim Eastwood wrote: >> +static void lpc18xx_gpio_pint_handler(struct irq_desc *desc) >> +{ >> + struct lpc18xx_gpio_pint_chip *pint = irq_desc_get_handler_data(desc); >> +

Re: [PATCH 1/2] irqchip: add lpc18xx gpio pin interrupt driver

2016-02-27 Thread Joachim Eastwood
Hi Thomas, On 26 February 2016 at 11:26, Thomas Gleixner wrote: > On Thu, 25 Feb 2016, Joachim Eastwood wrote: >> +static void lpc18xx_gpio_pint_handler(struct irq_desc *desc) >> +{ >> + struct lpc18xx_gpio_pint_chip *pint = irq_desc_get_handler_data(desc); >> + unsigned int irq =

Re: [PATCH 1/2] irqchip: add lpc18xx gpio pin interrupt driver

2016-02-26 Thread Thomas Gleixner
On Thu, 25 Feb 2016, Joachim Eastwood wrote: > +static void lpc18xx_gpio_pint_handler(struct irq_desc *desc) > +{ > + struct lpc18xx_gpio_pint_chip *pint = irq_desc_get_handler_data(desc); > + unsigned int irq = irq_desc_get_irq(desc); > + int irq_no, i; > + > + /* Find the

Re: [PATCH 1/2] irqchip: add lpc18xx gpio pin interrupt driver

2016-02-26 Thread Thomas Gleixner
On Thu, 25 Feb 2016, Joachim Eastwood wrote: > +static void lpc18xx_gpio_pint_handler(struct irq_desc *desc) > +{ > + struct lpc18xx_gpio_pint_chip *pint = irq_desc_get_handler_data(desc); > + unsigned int irq = irq_desc_get_irq(desc); > + int irq_no, i; > + > + /* Find the

[PATCH 1/2] irqchip: add lpc18xx gpio pin interrupt driver

2016-02-25 Thread Joachim Eastwood
NXP LPC18xx has an interrupt controller called 'gpio pin interrupt' or just PINT. The PINT can handle up to 8 interrupts and these have a one-to-one relationship with the main interrupt controller (NVIC). The interrupts on PINT can be either level or edge trigger and supports any polarity.

[PATCH 1/2] irqchip: add lpc18xx gpio pin interrupt driver

2016-02-25 Thread Joachim Eastwood
NXP LPC18xx has an interrupt controller called 'gpio pin interrupt' or just PINT. The PINT can handle up to 8 interrupts and these have a one-to-one relationship with the main interrupt controller (NVIC). The interrupts on PINT can be either level or edge trigger and supports any polarity.