Changeset 31001


Ignore:
Timestamp:
2012-03-18T23:06:26+01:00 (6 years ago)
Author:
juhosg
Message:

generic: ar8216: add vtu_flush field to ar8xxx_chip

File:
1 edited

Legend:

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

    r31000 r31001  
    4545                           u32 ingress, u32 members, u32 pvid); 
    4646        int (*atu_flush)(struct ar8216_priv *priv); 
     47        void (*vtu_flush)(struct ar8216_priv *priv); 
    4748}; 
    4849 
     
    483484} 
    484485 
     486static void 
     487ar8216_vtu_flush(struct ar8216_priv *priv) 
     488{ 
     489        ar8216_vtu_op(priv, AR8216_VTU_OP_FLUSH, 0); 
     490} 
     491 
    485492static int 
    486493ar8216_atu_flush(struct ar8216_priv *priv) 
     
    554561        mutex_lock(&priv->reg_mutex); 
    555562        /* flush all vlan translation unit entries */ 
    556         ar8216_vtu_op(priv, AR8216_VTU_OP_FLUSH, 0); 
     563        priv->chip->vtu_flush(priv); 
    557564 
    558565        memset(portmask, 0, sizeof(portmask)); 
     
    761768        .setup_port = ar8216_setup_port, 
    762769        .atu_flush = ar8216_atu_flush, 
     770        .vtu_flush = ar8216_vtu_flush, 
    763771}; 
    764772 
     
    768776        .setup_port = ar8236_setup_port, 
    769777        .atu_flush = ar8216_atu_flush, 
     778        .vtu_flush = ar8216_vtu_flush, 
    770779}; 
    771780 
     
    775784        .setup_port = ar8216_setup_port, 
    776785        .atu_flush = ar8216_atu_flush, 
     786        .vtu_flush = ar8216_vtu_flush, 
    777787}; 
    778788 
Note: See TracChangeset for help on using the changeset viewer.