gpio: thunderx: Convert to immutable irq_chip
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Mar 2023 09:55:11 +0000 (10:55 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 23 Mar 2023 13:31:18 +0000 (14:31 +0100)
commitef902f54e91b3012586f6387daeebec2966312f0
tree6f1284089dfc6f66431548e602423435ce9193e5
parent32585b565fed013449f9a58b05846b508b989e74
gpio: thunderx: Convert to immutable irq_chip

Convert the driver to immutable irq-chip with a bit of
intuition.

Whereas in most cases we put the gpiochip_[enable|disable]_irq()
calls in the .irq_mask() and .irq_unmask() callbacks, here
we need to put them in the .irq_enable() and .irq_disable()
callbacks, as this driver uses both .irq_mask() and
.irq_mask_ack().

Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-thunderx.c