]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: meson: fix pinconf bias disable
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 23 Oct 2018 16:03:19 +0000 (18:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:42:53 +0000 (09:42 +0100)
commit6dce186b48bbf6abbe207a9f18deaaa6b6363d22
tree25c946e9a5e95ad3be2ec020fc17cff01c35fbd9
parent240ec6ca4b9a2f05bf1190e37c637820fcfbeecd
pinctrl: meson: fix pinconf bias disable

[ Upstream commit e39f9dd8206ad66992ac0e6218ef1ba746f2cce9 ]

If a bias is enabled on a pin of an Amlogic SoC, calling .pin_config_set()
with PIN_CONFIG_BIAS_DISABLE will not disable the bias. Instead it will
force a pull-down bias on the pin.

Instead of the pull type register bank, the driver should access the pull
enable register bank.

Fixes: 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/meson/pinctrl-meson.c