diff options
| author | Matthias Schiffer <[email protected]> | 2024-11-11 14:10:31 +0000 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2024-11-12 14:46:54 +0000 |
| commit | 1f86faeb8b4bfeaa001a6c24141cdfc98093e9db (patch) | |
| tree | 6b1d5f3fba99fe3fe3c8964f21c9bc1abca350b6 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | mfd: tqmx86: Refactor GPIO IRQ setup (diff) | |
| download | kernel-1f86faeb8b4bfeaa001a6c24141cdfc98093e9db.tar.gz kernel-1f86faeb8b4bfeaa001a6c24141cdfc98093e9db.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/2b5522362098d54c6203be6da95bbc545a21fd49.1731325758.git.matthias.schiffer@ew.tq-group.com
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
