]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: gpio-aspeed-sgpio: Fix wrong hwirq in irq handler.
authorSteven Lee <steven_lee@aspeedtech.com>
Tue, 7 Sep 2021 09:55:25 +0000 (17:55 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 22 Sep 2021 09:23:10 +0000 (11:23 +0200)
commit8d6ca8b936429e1a66be7a733e358d2256f22055
treee3703eaa07df5ef7795fb33682d36abff542cc65
parent3fd407202cc851a4a2be86356bdaa9de78a8510d
gpio: gpio-aspeed-sgpio: Fix wrong hwirq in irq handler.

The current hwirq is calculated based on the old GPIO pin order(input
GPIO range is from 0 to ngpios - 1).
It should be calculated based on the current GPIO input pin order(input
GPIOs are 0, 2, 4, ..., (ngpios - 1) * 2).

Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-aspeed-sgpio.c