Thread (10 messages) 10 messages, 4 authors, 2026-01-29

Re: [PATCH v2 1/3] gpio: brcmstb: correct hwirq to bank map

From: Linus Walleij <linusw@kernel.org>
Date: 2026-01-27 22:15:38
Also in: linux-gpio, lkml

On Tue, Jan 27, 2026 at 10:47 PM Florian Fainelli
[off-list ref] wrote:
From: Doug Berger <opendmb@gmail.com>

The brcmstb_gpio_hwirq_to_bank() function was designed to
accommodate the downward numbering of dynamic GPIOs by
traversing the bank list in the reverse order. However, the
dynamic numbering has changed to increment upward which can
produce an incorrect mapping.

The function is modified to no longer assume an ordering of
the list to accommodate either option.

Fixes: 7b61212f2a07 ("gpiolib: Get rid of ARCH_NR_GPIOS")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
This looks right.
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help