gpio: tegra186: Support multiple interrupts per bank
authorThierry Reding <treding@nvidia.com>
Fri, 17 Sep 2021 10:54:12 +0000 (12:54 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 22 Sep 2021 09:26:12 +0000 (11:26 +0200)
commit2103868047456e5f3e431ebb253d87e1fb806c76
treeff254f8dcb3e976d522273ffa69eac8e7dc23c7a
parentca038748068f454d20ad1bb120cbe36599f81db6
gpio: tegra186: Support multiple interrupts per bank

Tegra194 and later support more than a single interrupt per bank. This
is primarily useful for virtualization but can also be helpful for more
fine-grained CPU affinity control. To keep things simple for now, route
all pins to the first interrupt.

For backwards-compatibility, support old device trees that specify only
one interrupt per bank by counting the interrupts at probe time.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-tegra186.c