[PATCH] gpio: mpfs: reject unsupported interrupt types

Bartosz Golaszewski bartosz.golaszewski at oss.qualcomm.com
Fri Nov 6 01:43:28 PST 2026


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 at oss.qualcomm.com>



More information about the linux-riscv mailing list