• Vivien Didelot's avatar
    net: dsa: mv88e6xxx: factorize GLOBAL_CONTROL setup · 119477bd
    Vivien Didelot authored
    All switch models configure the GLOBAL_CONTROL register with slightly
    differences.
    
    Discarding packets with excessive collisions
    (GLOBAL_CONTROL_DISCARD_EXCESS) is specific to 6352 and similar
    switches, and setting a maximum frame size
    (GLOBAL_CONTROL_MAX_FRAME_1632) is specific to 6185 and similar
    switches.
    
    As we are centralizing the chips setup, skip these settings and don't
    discard any frames yet, until we found out that such discarding by the
    hardware is necessary.
    
    Assume a common setup to enable the PHY Polling Unit if present, don't
    discard any packets, and mask all interrupt sources.
    
    Tested on 88E6352 and 88E6185.
    Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    119477bd
mv88e6352.c 4.74 KB