]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
gpio: ep93xx: fix BUG_ON port F usage
authorNikita Shubin <nikita.shubin@maquefel.me>
Tue, 9 Feb 2021 13:31:04 +0000 (16:31 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 10 Feb 2021 13:47:16 +0000 (14:47 +0100)
commit8b81a7ab8055d01d827ef66374b126eeac3bd108
treea056453b1e8f35f76b504f6f43b8a970438b8289
parent97c6e28d388a5000d780d2a63c32f422827f5aa3
gpio: ep93xx: fix BUG_ON port F usage

Two index spaces and ep93xx_gpio_port are confusing.

Instead add a separate struct to store necessary data and remove
ep93xx_gpio_port.

- add struct to store IRQ related data for each IRQ capable chip
- replace offset array with defined offsets
- add IRQ registers offset for each IRQ capable chip into
  ep93xx_gpio_banks

------------[ cut here ]------------
kernel BUG at drivers/gpio/gpio-ep93xx.c:64!
---[ end trace 3f6544e133e9f5ae ]---

Fixes: fd935fc421e74 ("gpio: ep93xx: Do not pingpong irq numbers")
Cc: <stable@vger.kernel.org>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-ep93xx.c