Setting this bit stops BCM53125 (bgmac actually) from receiving any packets. In theory setting "managed" mode makes sense when enabling VLAN (at least for me?) but for some reason it breaks configuration.
This bit is cleared in b53_switch_reset and it seems the same is done in bcmrobo.c which never sets that bit again. Signed-off-by: Rafał Miłecki <[email protected]> --- I'm not sure about clearing SM_SW_FWD_MODE bit in the "else" inside of b53_enable_vlan. Should be drop that too? --- target/linux/generic/files/drivers/net/phy/b53/b53_common.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index 923d155..f992118 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c @@ -245,9 +245,6 @@ static void b53_enable_vlan(struct b53_device *dev, int enable) } if (enable) { - if (!is63xx(dev)) - mgmt |= SM_SW_FWD_MODE; - vc0 |= VC0_VLAN_EN | VC0_VID_CHK_EN | VC0_VID_HASH_VID; vc1 |= VC1_RX_MCST_UNTAG_EN | VC1_RX_MCST_FWD_EN; vc4 &= ~VC4_ING_VID_CHECK_MASK; -- 1.7.10.4 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
