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 <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
Viresh Kumar 2012-10-27 14:47:46 +05:30 • committed by Linus Walleij
commit 0b53fa3535

View file

@ -244,7 +244,7 @@ static int spear_pinctrl_endisable(struct pinctrl_dev *pctldev,
else
temp = ~muxreg->val;
val |= temp;
val |= muxreg->mask & temp;
pmx_writel(pmx, val, muxreg->reg);
}
}