diff options
| author | Ahmed Naseef <naseefkm@gmail.com> | 2026-08-28 19:35:13 +0400 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-09-01 19:18:34 +0200 |
| commit | 44993896813659d9adc8c0a0ba3986bdbda748ab (patch) | |
| tree | 6dadc0fa1100834bdf9dc3e63f29a13d7196c16f /tools/perf/scripts/python/stackcollapse.py | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| download | linux-next-44993896813659d9adc8c0a0ba3986bdbda748ab.tar.gz linux-next-44993896813659d9adc8c0a0ba3986bdbda748ab.zip | |
pinctrl: airoha: limit GPIO interrupts to interrupt-capable pins
The driver assumes that every one of the AIROHA_NUM_PINS GPIOs can raise
an interrupt. That holds for the SoCs supported so far, but not for every
member of the family: on EN7528 only GPIO0-GPIO15 are wired to the
interrupt controller.
Without this the driver hands out interrupts for GPIOs that can never
fire, and the interrupt handler reads status registers that are not
backed by any pin.
Add a num_irq_pins field to the per-SoC match data and use it to bound
the interrupt callbacks and to size the loop in the interrupt handler.
Feed it to gpiolib through gpio_irq_chip::init_valid_mask as well, so
that gpiod_to_irq() fails for a pin that cannot be an interrupt source
instead of deferring the failure to request_irq().
Signed-off-by: Ahmed Naseef <naseefkm@gmail.com>
Reviewed-by: Benjamin Larsson <benjamin.larsson@genexis.eu>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
