diff options
| author | Areeb Ul Haq Mirza <auhmirza02@gmail.com> | 2026-11-02 21:25:00 +0000 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-11-05 10:11:45 +0100 |
| commit | 4b768208a7948f409c5ddcbff99566acc8fdc25a (patch) | |
| tree | 7d3a08584d1fe49338384070dc720ed54ae74c79 /scripts/Makefile.thinlto | |
| parent | 98f60035b9b5e159d4062a7920a6b7620f7dbe5a (diff) | |
| download | linux-next-4b768208a7948f409c5ddcbff99566acc8fdc25a.tar.gz linux-next-4b768208a7948f409c5ddcbff99566acc8fdc25a.zip | |
pinctrl: keembay: make keembay_gpio_irqchip const
gpiolib warns about mutable irq_chips at probe time:
"not an immutable chip, please consider fixing it!"
Make keembay_gpio_irqchip const, flag it as IRQCHIP_IMMUTABLE, add the
GPIOCHIP_IRQ_RESOURCE_HELPERS and register it with
gpio_irq_chip_set_chip().
The chip only implements .irq_enable() and .irq_disable(), so call
gpiochip_enable_irq() and gpiochip_disable_irq() from those callbacks,
following commit 35d008679a5a ("pinctrl: plgpio: Convert to immutable
irq_chip") [1] and commit 2993d2dd8ff4 ("gpio: timberdale: Make irq_chip
immutable") [2]. gpiochip_enable_irq() is called once a free interrupt
source and slot have been found, so a line is only marked enabled when
it is actually routed. gpiochip_disable_irq() is called after the line
has been cleared from the interrupt configuration register.
Link: https://lore.kernel.org/r/20230414-immutable-irqchips-2-v1-3-6b59a5186b00@linaro.org [1]
Link: https://lore.kernel.org/r/20250509-gpio-v1-8-639377c98288@nxp.com [2]
Signed-off-by: Areeb Ul Haq Mirza <auhmirza02@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
