-
由 Hans Verkuil 提交于
The commit that sets the direction directly without calling pinctrl_gpio_direction(), forgot to add chip->base to the offset when calling sunxi_pmx_gpio_set_direction(). This caused failures for various Allwinner boards which have two GPIO blocks. Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: N5kft <5kft@5kft.org> Suggested-by: N5kft <5kft@5kft.org> Reported-by: NCorentin Labbe <clabbe.montjoie@gmail.com> Fixes: 8df89a7c (pinctrl-sunxi: don't call pinctrl_gpio_direction()) Tested-by: NCorentin Labbe <clabbe.montjoie@gmail.com> Tested-by: NJernej Skrabec <jernej.skrabec@gmail.com> Acked-by: NJernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/0f536cd8-01db-5d16-2cec-ec6d19409a49@xs4all.nlSigned-off-by: NGuenter Roeck <linux@roeck-us.net> [Picked from linux-next to pinctrl fixes] Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
7795686d