pinctrl: sprd: Use the correct pin output configuration
authorLinhua Xu <linhua.xu@unisoc.com>
Wed, 25 Mar 2020 08:25:27 +0000 (16:25 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Mar 2020 21:07:10 +0000 (22:07 +0100)
commitbb0f472f96fa2bda2c3e412cd84f16b15d992a56
treea399e20b17dfe3342b088c63b78017ca7e713038
parent368b62f2fd077d4c7db09461e8e24f07491a513d
pinctrl: sprd: Use the correct pin output configuration

The Spreadtrum pin controller did not supply registers to set high level
or low level for output mode, instead we should let the pin controller
current configuration drive values on the line. So we should use the
PIN_CONFIG_OUTPUT_ENABLE configuration to enable or disable the output
mode.

[Baolin Wang changes the commit message]
Fixes: 41d32cfce1ae ("pinctrl: sprd: Add Spreadtrum pin control driver")
Signed-off-by: Linhua Xu <linhua.xu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/8a6f91b49c17beb218e46b23084f59a7c7260f86.1585124562.git.baolin.wang7@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sprd/pinctrl-sprd.c