Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481086 > unrolled thread

[PATCH] pinctrl: qcom: fix masking of pinmux functions

Started byJohn Crispin <john@phrozen.org>
First post2016-09-12 11:40 +0200
Last post2016-09-12 11:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] pinctrl: qcom: fix masking of pinmux functions John Crispin <john@phrozen.org> - 2016-09-12 11:40 +0200

#1481086 — [PATCH] pinctrl: qcom: fix masking of pinmux functions

FromJohn Crispin <john@phrozen.org>
Date2016-09-12 11:40 +0200
Subject[PATCH] pinctrl: qcom: fix masking of pinmux functions
Message-ID<sgvSy-1oS-21@gated-at.bofh.it>
The following commit introduced a regression by not properly masking the
calculated value.

commit 47a01ee9a6c39fe1 ("pinctrl: qcom: Clear all function selection bits")

Signed-off-by: John Crispin <john@phrozen.org>
---
 drivers/pinctrl/qcom/pinctrl-msm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
index 51c42d7..775c883 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
@@ -156,7 +156,7 @@ static int msm_pinmux_set_mux(struct pinctrl_dev *pctldev,
 	spin_lock_irqsave(&pctrl->lock, flags);
 
 	val = readl(pctrl->regs + g->ctl_reg);
-	val &= mask;
+	val &= ~mask;
 	val |= i << g->mux_bit;
 	writel(val, pctrl->regs + g->ctl_reg);
 
-- 
1.7.10.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web