Changeset 31005


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

generic: ar8216: add read_port_status field to ar8xxx_chip

File:
1 edited

Legend:

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

    r31004 r31005  
    4949        void (*setup_port)(struct ar8216_priv *priv, int port, u32 egress, 
    5050                           u32 ingress, u32 members, u32 pvid); 
     51        u32 (*read_port_status)(struct ar8216_priv *priv, int port); 
    5152        int (*atu_flush)(struct ar8216_priv *priv); 
    5253        void (*vtu_flush)(struct ar8216_priv *priv); 
     
    178179        memset(link, '\0', sizeof(*link)); 
    179180 
    180         status = priv->read(priv, AR8216_REG_PORT_STATUS(port)); 
     181        status = priv->chip->read_port_status(priv, port); 
    181182 
    182183        link->aneg = !!(status & AR8216_PORT_STATUS_LINK_AUTO); 
     
    520521 
    521522        return ret; 
     523} 
     524 
     525static u32 
     526ar8216_read_port_status(struct ar8216_priv *priv, int port) 
     527{ 
     528        return priv->read(priv, AR8216_REG_PORT_STATUS(port)); 
    522529} 
    523530 
     
    791798        .init_port = ar8216_init_port, 
    792799        .setup_port = ar8216_setup_port, 
     800        .read_port_status = ar8216_read_port_status, 
    793801        .atu_flush = ar8216_atu_flush, 
    794802        .vtu_flush = ar8216_vtu_flush, 
     
    801809        .init_port = ar8216_init_port, 
    802810        .setup_port = ar8236_setup_port, 
     811        .read_port_status = ar8216_read_port_status, 
    803812        .atu_flush = ar8216_atu_flush, 
    804813        .vtu_flush = ar8216_vtu_flush, 
     
    812821        .init_port = ar8216_init_port, 
    813822        .setup_port = ar8216_setup_port, 
     823        .read_port_status = ar8216_read_port_status, 
    814824        .atu_flush = ar8216_atu_flush, 
    815825        .vtu_flush = ar8216_vtu_flush, 
Note: See TracChangeset for help on using the changeset viewer.