(4/6) bcm57xx: switch-core.c/switch-robo.c check for port already registered
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jun 2008 11:10:27 +0000 (11:10 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jun 2008 11:10:27 +0000 (11:10 +0000)
commitec81fa9d4e8175468d96fd7d23548f2ed6b32315
treee9ffa5ddb51761909cb903da543229dc05407612
parent0c1bbd505a3c9221b85f2708a09984aa233014a2
(4/6) bcm57xx: switch-core.c/switch-robo.c check for port already registered

This patch prevents switch-robo.c from attempting robo_probe on a port
that is already registered.  robo_probe will adjust kernel reference counts
if it detects a switch on the port.  If this patch wasn't applied, the
wrt350n would hang on reboot, waiting for the network driver reference count
to reach zero indefinitely.

Signed-off-by: Ben Pfountz <netprince (at) vt (dot) edu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11469 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/switch/src/switch-core.c
package/switch/src/switch-core.h
package/switch/src/switch-robo.c