Skip to content

Commit e9f7b92

Browse files
Forty-BotLinus Walleij
authored andcommitted
pinctrl: k210: Fix bias-pull-up
Using bias-pull-up would actually cause the pin to have its pull-down enabled. Fix this. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Fixes: d4c34d0 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver") Link: https://lore.kernel.org/r/20220209182822.640905-1-seanga2@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent ba2ab85 commit e9f7b92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/pinctrl-k210.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static int k210_pinconf_set_param(struct pinctrl_dev *pctldev,
527527
case PIN_CONFIG_BIAS_PULL_UP:
528528
if (!arg)
529529
return -EINVAL;
530-
val |= K210_PC_PD;
530+
val |= K210_PC_PU;
531531
break;
532532
case PIN_CONFIG_DRIVE_STRENGTH:
533533
arg *= 1000;

0 commit comments

Comments
 (0)