aboutsummaryrefslogtreecommitdiff
path: root/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
diff options
context:
space:
mode:
authorGravatar Maxime Ripard <maxime.ripard@free-electrons.com> 2017-10-09 22:53:38 +0200
committerGravatar Linus Walleij <linus.walleij@linaro.org> 2017-10-31 09:45:00 +0100
commitcd70387f892205bcd7b8093b0837269b0739cbe0 (patch)
tree103dec75d1e2ca2dea06787e3acd54b9edab62cd /drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
parentpinctrl: sunxi: Introduce the strict flag (diff)
downloadlinux-cd70387f892205bcd7b8093b0837269b0739cbe0.tar.gz
linux-cd70387f892205bcd7b8093b0837269b0739cbe0.tar.bz2
linux-cd70387f892205bcd7b8093b0837269b0739cbe0.zip
pinctrl: sunxi: Disable strict mode for old pinctrl drivers
Old pinctrl drivers will need to disable strict mode for various reasons, among which: - Some DT will still have a pinctrl group for each GPIO used, which will be rejected by pin_request. While we could remove those nodes, we still have to deal with old DTs. - Some GPIOs on these boards need to have their pin configuration changed (for bias or current), and there's no clear migration path Let's disable the strict mode on those SoCs so that there's no breakage. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c')
-rw-r--r--drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c b/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
index 49a1deb97bb7..a00246d3dd49 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
@@ -106,6 +106,7 @@ static const struct sunxi_pinctrl_desc sun6i_a31_r_pinctrl_data = {
.npins = ARRAY_SIZE(sun6i_a31_r_pins),
.pin_base = PL_BASE,
.irq_banks = 2,
+ .disable_strict_mode = true,
};
static int sun6i_a31_r_pinctrl_probe(struct platform_device *pdev)