[PATCH V2 1/5] pinctrl: SPEAr: Don't set all non muxreg bits on pinctrl_disable
Viresh Kumar
viresh.kumar at st.com
Thu May 3 06:12:03 EDT 2012
Signed-off-by: Viresh Kumar <viresh.kumar at st.com>
---
drivers/pinctrl/spear/pinctrl-spear.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c
index 5ae50aa..8653569 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.9
More information about the linux-arm-kernel
mailing list