Re: [PATCH] gpio: mpfs: reject unsupported interrupt types

From: Bartosz Golaszewski

Date: Fri Nov 06 2026 - 04:52:31 EST



On Thu, 05 Nov 2026 08:16:51 +0000, Isaac Adjei wrote:
> The switch statement in mpfs_gpio_irq_set_type() does not handle
> unsupported interrupt types. For example, IRQ_TYPE_NONE is not listed.
>
> When an unsupported type is passed, interrupt_type remains
> uninitialised. Its undefined value is then written to the GPIO control
> register. The function still returns 0, making the caller believe the
> operation succeeded.
>
> [...]

Applied, thanks!

[1/1] gpio: mpfs: reject unsupported interrupt types
https://git.kernel.org/brgl/c/cfbd01eddaf5bfdd4f53560013fe830571a186e9

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>