OSDN Git Service

pinctrl: sunxi: Introduce the strict flag
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 9 Oct 2017 20:53:37 +0000 (22:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 Oct 2017 08:43:54 +0000 (09:43 +0100)
commitaae842a3ff3385f27f1df8a9ee1494a416ec032d
tree67b35a9bc0897afd1fe8498770eadab45e5f817e
parent051e1674a5bfe971b31305851a511eb5fbf4f9aa
pinctrl: sunxi: Introduce the strict flag

Our pinctrl device should have had strict set all along. However, it wasn't
the case, and most of our old device trees also have a pinctrl group in
addition to the GPIOs properties, which mean that we can't really turn it
on now.

All our new SoCs don't have that group, so we should still enable that mode
on the newer one though.

In order to enable it by default, add a flag that will allow to disable
that mode that should be set by pinctrl drivers that cannot be migrated.

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