On Thu, Dec 10, 2020 at 8:06 AM Nikita Shubin <nikita.shubin@xxxxxxxxxxx> wrote: > irqchip shared with multiple gpiochips, leads to recursive call of > gpiochip_irq_mask/gpiochip_irq_unmask which was assigned to > rqchip->irq_mask/irqchip->irq_unmask, these happens becouse of > only irqchip->irq_enable == gpiochip_irq_enable is checked. > > Let's add an additional check to make sure shared irqchip is detected > even if irqchip->irq_enable wasn't defined. > > Fixes: a8173820f441 ("gpio: gpiolib: Allow GPIO IRQs to lazy disable") > Signed-off-by: Nikita Shubin <nikita.shubin@xxxxxxxxxxx> Good catch! Patch applied. Yours, Linus Walleij