diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-01-08 20:24:29 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-01-08 20:24:29 +0000 |
commit | 83ed5e6afe27c1f8476c1512ca5b2f47011aa3a0 (patch) | |
tree | 75a0d731afdea86205b0665ed164fa64d873de3b /target/linux/generic/files/drivers/net/phy/rtl8366s.c | |
parent | 38528d474dbc2478c5a170b4682f997239278d95 (diff) | |
download | upstream-83ed5e6afe27c1f8476c1512ca5b2f47011aa3a0.tar.gz upstream-83ed5e6afe27c1f8476c1512ca5b2f47011aa3a0.tar.bz2 upstream-83ed5e6afe27c1f8476c1512ca5b2f47011aa3a0.zip |
generic: rtl8366: enable vlans before enabling the ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24939 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366s.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366s.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c index 74e0a3029c..3b7fcce329 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c @@ -809,6 +809,10 @@ static int rtl8366s_sw_reset_switch(struct switch_dev *dev) if (err) return err; + err = rtl8366_enable_vlan(smi, 1); + if (err) + return err; + return rtl8366_enable_all_ports(smi, 1); } |