summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/qcom
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-09-12 11:36:55 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-10-04 00:36:20 +0200
commit6bcf3f63394b9c4f133e4499349d786d7f531473 (patch)
tree63c17ec564f399d87722ba8c3cf05e6ce7f2bd74 /drivers/pinctrl/qcom
parentMerge branch 'fixes' into devel (diff)
downloadlinux-6bcf3f63394b9c4f133e4499349d786d7f531473.tar.xz
linux-6bcf3f63394b9c4f133e4499349d786d7f531473.zip
pinctrl: qcom: fix masking of pinmux functions
The following commit introduced a regression by not properly masking the calculated value. Fixes: 47a01ee9a6c3 ("pinctrl: qcom: Clear all function selection bits") Signed-off-by: John Crispin <john@phrozen.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom')
-rw-r--r--drivers/pinctrl/qcom/pinctrl-msm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
index 51c42d746883..775c88303017 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);