diff options
author | Matthias Schiffer <matthias.schiffer@ew.tq-group.com> | 2024-11-11 17:10:31 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-11-12 17:46:54 +0300 |
commit | 1f86faeb8b4bfeaa001a6c24141cdfc98093e9db (patch) | |
tree | 6b1d5f3fba99fe3fe3c8964f21c9bc1abca350b6 /tools/perf/scripts/python | |
parent | b58bbbd7c599eab4861cc68a13440f5ad4679dba (diff) | |
download | linux-1f86faeb8b4bfeaa001a6c24141cdfc98093e9db.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions