Changeset 37994


Ignore:
Timestamp:
2013-09-15T15:29:14+02:00 (4 years ago)
Author:
hauke
Message:

kernel: b53: fix vlan write for BCM5325 revison 3+

These switches are integrated in some recent BCM53XX and BCM47XX SoCs
like the BCM53572.

Signed-off-by: Hauke Mehrtens <hauke@…>

File:
1 edited

Legend:

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

    r37987 r37994  
    189189                u32 entry = 0; 
    190190 
    191                 if (members) 
    192                         entry = (untag << VA_UNTAG_S) | members | VA_VALID_25; 
     191                if (members) { 
     192                        entry = (untag << VA_UNTAG_S) | members; 
     193                        if (dev->core_rev >= 3) 
     194                                entry |= VA_VALID_25_R4 | vid << VA_VID_HIGH_S; 
     195                        else 
     196                                entry |= VA_VALID_25; 
     197                } 
    193198 
    194199                b53_write32(dev, B53_VLAN_PAGE, B53_VLAN_WRITE_25, entry); 
Note: See TracChangeset for help on using the changeset viewer.