]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8acea6b5805cd23e0326477da1b750171a2ba5c9
tree67b35a9bc0897afd1fe8498770eadab45e5f817e
parent0a14e54b63493cd6f996ef4fdc245e7e42f04b9e
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