Skip to content

Commit 7b04f98

Browse files
MrVanBartosz Golaszewski
authored andcommitted
gpio: bcm-kona: make irq_chip immutable
The gpiolib is moving to make irq_chip immutable, otherwise there is warning: "not an immutable chip, please consider fixing it!" The bcm_gpio_irq_chip already has irq hooks configured correctly, bcm_kona_gpio_irq_mask/bcm_kona_gpio_irq_unmask calls gpiochip_disable_irq/ gpiochip_enable_irq, and bcm_kona_gpio_irq_reqres/irq_release_resources calls gpiochip_reqres_irq/gpiochip_relres_irq. So just need to flag it as IRQCHIP_IMMUTABLE. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20250509-gpio-v1-1-639377c98288@nxp.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 833c086 commit 7b04f98

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpio/gpio-bcm-kona.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ static struct irq_chip bcm_gpio_irq_chip = {
516516
.irq_set_type = bcm_kona_gpio_irq_set_type,
517517
.irq_request_resources = bcm_kona_gpio_irq_reqres,
518518
.irq_release_resources = bcm_kona_gpio_irq_relres,
519+
.flags = IRQCHIP_IMMUTABLE,
519520
};
520521

521522
static struct of_device_id const bcm_kona_gpio_of_match[] = {

0 commit comments

Comments
 (0)