gpiolib: Fix GPIO chip IRQ initialization restriction
stable inclusion from stable-v5.10.186 commit 75aa3f255c884c458ff4f3e6d4608debafa96a8c category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8J4KH Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=75aa3f255c884c458ff4f3e6d4608debafa96a8c -------------------------------- [ Upstream commit 8c00914e ] In case of gpio-regmap, IRQ chip is added by regmap-irq and associated with GPIO chip by gpiochip_irqchip_add_domain(). The initialization flag was not added in gpiochip_irqchip_add_domain(), causing gpiochip_to_irq() to return -EPROBE_DEFER. Fixes: 5467801f ("gpio: Restrict usage of GPIO chip irq members before initialization") Signed-off-by:Jiawen Wu <jiawenwu@trustnetic.com> Reviewed-by:
Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment