Changeset 35723


Ignore:
Timestamp:
2013-02-21T12:45:38+01:00 (5 years ago)
Author:
jogo
Message:

generic: b53: clear SM_SW_FWD_MODE unconditionally when enabling VLAN

Setting this bit stops BCM53125 (bgmac actually) from receiving any
packets. This bit is cleared conditionally 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 <zajec5@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/b53/b53_common.c

    r35722 r35723  
    245245        } 
    246246 
     247        mgmt &= ~SM_SW_FWD_MODE; 
     248 
    247249        if (enable) { 
    248                 if (!is63xx(dev)) 
    249                         mgmt |= SM_SW_FWD_MODE; 
    250  
    251250                vc0 |= VC0_VLAN_EN | VC0_VID_CHK_EN | VC0_VID_HASH_VID; 
    252251                vc1 |= VC1_RX_MCST_UNTAG_EN | VC1_RX_MCST_FWD_EN; 
     
    268267                } 
    269268        } else { 
    270                 mgmt &= ~SM_SW_FWD_MODE; 
    271269                vc0 &= ~(VC0_VLAN_EN | VC0_VID_CHK_EN | VC0_VID_HASH_VID); 
    272270                vc1 &= ~(VC1_RX_MCST_UNTAG_EN | VC1_RX_MCST_FWD_EN); 
Note: See TracChangeset for help on using the changeset viewer.