[PATCH 1/9] pinctrl: SPEAr: Don't update all non muxreg bits on pinctrl_disable
Viresh Kumar
viresh.kumar at linaro.org
Sat Oct 27 05:17:46 EDT 2012
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 at linaro.org>
Acked-by: Linus Walleij <linus.walleij at linaro.org>
---
drivers/pinctrl/spear/pinctrl-spear.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c
index 5d4f44f..b1fd6ee 100644
--- a/drivers/pinctrl/spear/pinctrl-spear.c
+++ b/drivers/pinctrl/spear/pinctrl-spear.c
@@ -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);
}
}
--
1.7.12.rc2.18.g61b472e
More information about the linux-arm-kernel
mailing list