generic: ar8216: don't use 0 as default VID on AR8327
authorGabor Juhos <juhosg@openwrt.org>
Sat, 22 Dec 2012 18:30:04 +0000 (18:30 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 22 Dec 2012 18:30:04 +0000 (18:30 +0000)
VID0 is reserved for priority-tagged packets.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34862

target/linux/generic/files/drivers/net/phy/ar8216.c

index e47a7da289ae3901e32ee1f5e637adc9cda50c85..8dcaf0a483549e9ae9e0190d0786f1f0a34893a8 100644 (file)
@@ -1125,7 +1125,9 @@ ar8327_init_port(struct ar8216_priv *priv, int port)
        
        priv->write(priv, AR8327_REG_PORT_HEADER(port), 0);
 
-       priv->write(priv, AR8327_REG_PORT_VLAN0(port), 0);
+       t = 1 << AR8327_PORT_VLAN0_DEF_SVID_S;
+       t |= 1 << AR8327_PORT_VLAN0_DEF_CVID_S;
+       priv->write(priv, AR8327_REG_PORT_VLAN0(port), t);
 
        t = AR8327_PORT_VLAN1_OUT_MODE_UNTOUCH << AR8327_PORT_VLAN1_OUT_MODE_S;
        priv->write(priv, AR8327_REG_PORT_VLAN1(port), t);