diff options
author | John Crispin <john@phrozen.org> | 2016-09-12 09:36:55 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-10-03 22:36:20 (GMT) |
commit | 6bcf3f63394b9c4f133e4499349d786d7f531473 (patch) | |
tree | 63c17ec564f399d87722ba8c3cf05e6ce7f2bd74 | |
parent | 8d0a0ac0abcdba5b5d52726055c95f1f6234e85e (diff) | |
download | linux-6bcf3f63394b9c4f133e4499349d786d7f531473.tar.xz |
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>
-rw-r--r-- | drivers/pinctrl/qcom/pinctrl-msm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |