aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.10/999-pinctrl_fixes.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-03-18 19:21:56 +0000
committerJohn Crispin <blogic@openwrt.org>2014-03-18 19:21:56 +0000
commitde51ae36beb618be705b292e32610a2e3efae330 (patch)
tree5bd54a4e1462f1d3bd187b2af9d1f2d1d4f00d55 /target/linux/ramips/patches-3.10/999-pinctrl_fixes.patch
parent694bc2270f53c34cdf86d5067040481f37e44e00 (diff)
downloadmaster-187ad058-de51ae36beb618be705b292e32610a2e3efae330.tar.gz
master-187ad058-de51ae36beb618be705b292e32610a2e3efae330.tar.bz2
master-187ad058-de51ae36beb618be705b292e32610a2e3efae330.zip
ralink: refresh patches
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39949 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.10/999-pinctrl_fixes.patch')
-rw-r--r--target/linux/ramips/patches-3.10/999-pinctrl_fixes.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/target/linux/ramips/patches-3.10/999-pinctrl_fixes.patch b/target/linux/ramips/patches-3.10/999-pinctrl_fixes.patch
deleted file mode 100644
index d7ad676f09..0000000000
--- a/target/linux/ramips/patches-3.10/999-pinctrl_fixes.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- a/drivers/pinctrl/pinctrl-rt2880.c
-+++ b/drivers/pinctrl/pinctrl-rt2880.c
-@@ -204,6 +204,7 @@ static int rt2880_pmx_group_enable(struc
- {
- struct rt2880_priv *p = pinctrl_dev_get_drvdata(pctrldev);
- u32 mode = 0;
-+ int i;
-
- /* dont allow double use */
- if (p->groups[group].enabled) {
-@@ -217,16 +218,16 @@ static int rt2880_pmx_group_enable(struc
- mode = rt_sysc_r32(SYSC_REG_GPIO_MODE);
- mode &= ~(p->groups[group].mask << p->groups[group].shift);
-
-+ /* mark the pins as gpio */
-+ for (i = 0; i < p->groups[group].func[0].pin_count; i++)
-+ p->gpio[p->groups[group].func[0].pins[i]] = 1;
-+
- /* function 0 is gpio and needs special handling */
- if (func == 0) {
-- int i;
--
--
- mode |= p->groups[group].gpio << p->groups[group].shift;
-- /* mark the pins as gpio */
-- for (i = 0; i < p->groups[group].func[0].pin_count; i++)
-- p->gpio[p->groups[group].func[0].pins[i]] = 1;
- } else {
-+ for (i = 0; i < p->func[func]->pin_count; i++)
-+ p->gpio[p->func[func]->pins[i]] = 0;
- mode |= p->func[func]->value << p->groups[group].shift;
- }
- rt_sysc_w32(mode, SYSC_REG_GPIO_MODE);