Revert "pinctrl: sunxi: Don't enforce bias disable (for now)"
authorPriit Laes <plaes@plaes.org>
Sun, 27 Aug 2017 12:55:23 +0000 (15:55 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 13:51:49 +0000 (15:51 +0200)
This reverts commit 2154d94b40ea2a5de05245521371d0461bb0d669.

The original patch was intented to avoid some issues with the sunxi
gpio rework and was supposed to be reverted after all the required
DT bits had been merged around v4.10.

Signed-off-by: Priit Laes <plaes@plaes.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c

index 0dfd7fa66c48c7a3a0743833ba8ddaa4d6f31569..52edf3b5988d516b2d7e9c9ae0661c7947c38f57 100644 (file)
@@ -564,7 +564,8 @@ static int sunxi_pconf_group_set(struct pinctrl_dev *pctldev,
                        val = arg / 10 - 1;
                        break;
                case PIN_CONFIG_BIAS_DISABLE:
-                       continue;
+                       val = 0;
+                       break;
                case PIN_CONFIG_BIAS_PULL_UP:
                        if (arg == 0)
                                return -EINVAL;