Re: [PATCH 7/8] staging: mt7621-gpio: avoid custom irq_domain for gpio

2018-06-10 Thread Sergio Paracuellos
On Sun, Jun 10, 2018 at 07:02:20PM +1000, NeilBrown wrote: > On Sat, Jun 09 2018, Sergio Paracuellos wrote: > > > Instead of create a custom irq_domain for this chip, use > > 'gpiochip_set_chained_irqchip' from GPIOLIB_IRQCHIP. It > > is ok to call this function several times. You only have to >

Re: [PATCH 7/8] staging: mt7621-gpio: avoid custom irq_domain for gpio

2018-06-10 Thread NeilBrown
On Sat, Jun 09 2018, Sergio Paracuellos wrote: > Instead of create a custom irq_domain for this chip, use > 'gpiochip_set_chained_irqchip' from GPIOLIB_IRQCHIP. It > is ok to call this function several times. You only have to > mark the line with 'IRQF_SHARED' and then loop over the > three banks

[PATCH 7/8] staging: mt7621-gpio: avoid custom irq_domain for gpio

2018-06-09 Thread Sergio Paracuellos
Instead of create a custom irq_domain for this chip, use 'gpiochip_set_chained_irqchip' from GPIOLIB_IRQCHIP. It is ok to call this function several times. You only have to mark the line with 'IRQF_SHARED' and then loop over the three banks until you find a hit. There were some problems with