On Mon, Feb 20, 2017 at 2:41 AM, Phil Reid <preid@xxxxxxxxxxxxxxxxx> wrote: > When a threaded irq handler is chained attached to one of the gpio > pins when configure for level irq the altera_gpio_irq_leveL_high_handler > does not mask the interrupt while being handled by the chained irq. > This resulting in the threaded irq not getting enough cycles to complete > quickly enough before the irq was disabled as faulty. handle_level_irq > should be used in this situation instead of handle_simple_irq. > > In gpiochip_irqchip_add set default handler to handle_bad_irq as > per Documentation/gpio/driver.txt. Then set the correct handler in > the set_type callback. > > Signed-off-by: Phil Reid <preid@xxxxxxxxxxxxxxxxx> > --- > > Notes: > Change from v1: > - As per hint from Andy. > Set handler to handle_bad_irq in gpiochip_irqchip_add > This is inline with documentation but not what most gpio drivers do. > So I'm guessing this is now the correct way to do things. Heh I caught up on reviews and in the inbox is already this patch that fixes my review comments before I even sent them... Thanks and patch applied for fixes. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html