pinctrl: SPEAr: Don't update all non muxreg bits on pinctrl_disable
Not all bits of a register are used for pinctrl in SPEAr. So only update bits relevant to pinctrl using muxreg->mask. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8f0d8163b5
commit
0b53fa3535
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ static int spear_pinctrl_endisable(struct pinctrl_dev *pctldev,
|
||||||
else
|
else
|
||||||
temp = ~muxreg->val;
|
temp = ~muxreg->val;
|
||||||
|
|
||||||
val |= temp;
|
val |= muxreg->mask & temp;
|
||||||
pmx_writel(pmx, val, muxreg->reg);
|
pmx_writel(pmx, val, muxreg->reg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue