projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e4b444
)
switch: improve robo_switch_enable()
author
Hauke Mehrtens
<hauke@openwrt.org>
Wed, 13 Feb 2013 16:04:18 +0000
(16:04 +0000)
committer
Hauke Mehrtens
<hauke@openwrt.org>
Wed, 13 Feb 2013 16:04:18 +0000
(16:04 +0000)
This is based on a patch by jcharest and the Broadcom SDK.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35583
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/switch/src/switch-robo.c
patch
|
blob
|
history
diff --git
a/package/switch/src/switch-robo.c
b/package/switch/src/switch-robo.c
index
0e39c8f
..
41f0c18
100644
(file)
--- a/
package/switch/src/switch-robo.c
+++ b/
package/switch/src/switch-robo.c
@@
-237,10
+237,14
@@
static int robo_switch_enable(void)
return -EBUSY;
}
+ /* No spanning tree for unmanaged mode */
last_port = (robo.devid == ROBO_DEVICE_ID_5398) ?
- ROBO_PORT
6_CTRL : ROBO_PORT3
_CTRL;
- for (i = ROBO_PORT0_CTRL; i <
last_port + 1
; i++)
+ ROBO_PORT
7_CTRL : ROBO_PORT4
_CTRL;
+ for (i = ROBO_PORT0_CTRL; i <
= last_port
; i++)
robo_write16(ROBO_CTRL_PAGE, i, 0);
+
+ /* No spanning tree on IMP port too */
+ robo_write16(ROBO_CTRL_PAGE, ROBO_IM_PORT_CTRL, 0);
}
#ifdef CONFIG_BCM47XX