pinctrl: armada-37xx: Checks for errors in gpio_request_enable callback
authorPali Rohár <pali@kernel.org>
Fri, 5 Aug 2022 12:22:01 +0000 (14:22 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 Aug 2022 08:46:25 +0000 (10:46 +0200)
commit6b262b32faf0abf74062e2e2b72cbbea4572b9f3
tree5b94103648b13606b2f440ca534f10eaefa40d24
parent2fa9933d685ee9bcab056c81ef5f7fa242ba90e3
pinctrl: armada-37xx: Checks for errors in gpio_request_enable callback

Now when all MPP pins are properly defined and every MPP pin has GPIO
function, always checks for errors in armada_37xx_gpio_request_enable()
function when calling armada_37xx_pmx_set_by_name(). Function
armada_37xx_pmx_set_by_name() should not return "not supported" error
anymore for any GPIO pin when requesting GPIO mode.

Fixes: 87466ccd9401 ("pinctrl: armada-37xx: Add pin controller support for Armada 37xx")
Signed-off-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20220805122202.23174-3-pali@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c