Skip to content

Commit e9f7b92

Browse files
Forty-Botlinusw
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 <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Fixes: d4c34d0 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent ba2ab85 commit e9f7b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)