From: Baolin Wang <baolin.wang7@gmail.com> Date: 2020-03-25 08:25:43
From: Linhua Xu <redacted>
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 <redacted>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
---
drivers/pinctrl/sprd/pinctrl-sprd.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
From: Baolin Wang <baolin.wang7@gmail.com> Date: 2020-03-25 08:25:47
From: Linhua Xu <redacted>
For Spreadtrum pin controller, it will be the high impedance
mode if disable input and output mode for a pin. Thus add
PIN_CONFIG_BIAS_HIGH_IMPEDANCE configuration to support it.
Signed-off-by: Linhua Xu <redacted>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
---
drivers/pinctrl/sprd/pinctrl-sprd.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
On Wed, Mar 25, 2020 at 9:25 AM Baolin Wang [off-list ref] wrote:
From: Linhua Xu <redacted>
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 <redacted>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
On Wed, Mar 25, 2020 at 9:25 AM Baolin Wang [off-list ref] wrote:
From: Linhua Xu <redacted>
For Spreadtrum pin controller, it will be the high impedance
mode if disable input and output mode for a pin. Thus add
PIN_CONFIG_BIAS_HIGH_IMPEDANCE configuration to support it.
Signed-off-by: Linhua Xu <redacted>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Patch applied! Nice engineering here, figuring out the right
fit for pin control configs, thanks folks!
Yours,
Linus Walleij