]> Gentwo Git Trees - linux/.git/commit
mfd: tqmx86: Make IRQ setup errors non-fatal
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Mon, 11 Nov 2024 14:10:31 +0000 (15:10 +0100)
committerLee Jones <lee@kernel.org>
Tue, 12 Nov 2024 14:46:54 +0000 (14:46 +0000)
commit1f86faeb8b4bfeaa001a6c24141cdfc98093e9db
tree6b1d5f3fba99fe3fe3c8964f21c9bc1abca350b6
parentb58bbbd7c599eab4861cc68a13440f5ad4679dba
mfd: tqmx86: Make IRQ setup errors non-fatal

GPIO IRQ setup can fail either because an invalid IRQ was passed as a
parameter, or because the GPIO controller does not support interrupts.
Neither is severe enough to stop the whole probe; simply disable IRQ
support in the GPIO resource when setup fails.

The code is made a bit more robust by introduing an enum for the
resource list indices instead of assuming that the IRQ is at index 0.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Link: https://lore.kernel.org/r/2b5522362098d54c6203be6da95bbc545a21fd49.1731325758.git.matthias.schiffer@ew.tq-group.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/tqmx86.c