Re: [PATCH] pinctrl: k210: Fix bias-pull-up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/9/22 6:34 PM, Damien Le Moal wrote:
On 2/10/22 03:28, Sean Anderson wrote:
Using bias-pull-up would actually cause the pin to have its pull-down
enabled. Fix this.

Signed-off-by: Sean Anderson <seanga2@xxxxxxxxx>
---

  drivers/pinctrl/pinctrl-k210.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c
index 49e32684dbb2..1ad61b32ec88 100644
--- a/drivers/pinctrl/pinctrl-k210.c
+++ b/drivers/pinctrl/pinctrl-k210.c
@@ -527,7 +527,7 @@ static int k210_pinconf_set_param(struct pinctrl_dev *pctldev,
  	case PIN_CONFIG_BIAS_PULL_UP:
  		if (!arg)
  			return -EINVAL;
-		val |= K210_PC_PD;
+		val |= K210_PC_PU;
  		break;
  	case PIN_CONFIG_DRIVE_STRENGTH:
  		arg *= 1000;

Ooops... My bad :)

(This is in U-Boot as well, so it looks like it's my bad)



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux