hostapd: add acs feature indication
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.9 / 0043-pinctrl-sunxi-Don-t-enforce-bias-disable-for-now.patch
1 From 2154d94b40ea2a5de05245521371d0461bb0d669 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Mon, 23 Jan 2017 09:21:30 +0100
4 Subject: pinctrl: sunxi: Don't enforce bias disable (for now)
5
6 Commit 07fe64ba213f ("pinctrl: sunxi: Handle bias disable") actually
7 enforced enforced the disabling of the pull up/down resistors instead of
8 ignoring it like it was done before.
9
10 This was part of a wider rework to switch to the generic pinconf bindings,
11 and was meant to be merged together with DT patches that were switching to
12 it, and removing what was considered default values by both the binding and
13 the boards. This included no bias on a pin.
14
15 However, those DT patches were delayed to 4.11, which would be fine only
16 for a significant number boards having the bias setup wrong, which in turns
17 break the MMC on those boards (and possibly other devices too).
18
19 In order to avoid conflicts as much as possible, bring back the old
20 behaviour for 4.10, and we'll revert that commit once all the DT bits will
21 have landed.
22
23 Tested-by: Priit Laes <plaes@plaes.org>
24 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
25 Acked-by: Chen-Yu Tsai <wens@csie.org>
26 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
27 ---
28 drivers/pinctrl/sunxi/pinctrl-sunxi.c | 3 +--
29 1 file changed, 1 insertion(+), 2 deletions(-)
30
31 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
32 +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
33 @@ -564,8 +564,7 @@ static int sunxi_pconf_group_set(struct
34 val = arg / 10 - 1;
35 break;
36 case PIN_CONFIG_BIAS_DISABLE:
37 - val = 0;
38 - break;
39 + continue;
40 case PIN_CONFIG_BIAS_PULL_UP:
41 if (arg == 0)
42 return -EINVAL;