• Vivien Didelot's avatar
    net: dsa: mv88e6xxx: rework ATU Load/Purge · 9c13c026
    Vivien Didelot authored
    All Marvell switch chips have an ATU accessed using the same Global (1)
    register layout. Only the handling of the FID differs as more bits were
    necessary to support more and more databases.
    
    Add and use a fresh documented implementation of the ATU Load/Purge.
    
    The static mv88e6xxx_g1_atu_{fid_write,op_wait,op,data_write,mac_write}
    functions won't need to be exposed in the end so for the moment keep
    their counterparts _mv88e6xxx_atu_{wait,cmd,data_write,mac_write} as is,
    since they are still used by other ATU operations.
    Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9c13c026
chip.c 123 KB