]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 3 Oct 2023 07:39:26 +0000 (09:39 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 5 Oct 2023 06:41:56 +0000 (08:41 +0200)
commitf9315f17bf778cb8079a29639419fcc8a41a3c84
tree027ea0452eb4d2d4a658b2b46c2d3c6036d7dff9
parentf0575116507b981e6a810e78ce3c9040395b958b
gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()

pinctrl_gpio_set_config() expects the GPIO number from the global GPIO
numberspace, not the controller-relative offset, which needs to be added
to the chip base.

Fixes: 5ae4cb94b313 ("gpio: aspeed: Add debounce support")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
drivers/gpio/gpio-aspeed.c