Changeset 16629


Ignore:
Timestamp:
2009-06-29T23:54:16+02:00 (7 years ago)
Author:
nbd
Message:

ar8216: fix transmission of large frames by setting the switch mtu

Location:
trunk/target/linux/generic-2.6/files/drivers/net/phy
Files:
2 edited

Legend:

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

    r16442 r16629  
    489489        /* XXX: undocumented magic from atheros, required! */ 
    490490        priv->write(priv, 0x38, 0xc000050e); 
     491 
     492        ar8216_rmw(priv, AR8216_REG_GLOBAL_CTRL, 
     493                AR8216_GCTRL_MTU, 1518 + 8 + 2); 
     494 
    491495        return ar8216_hw_apply(dev); 
    492496} 
  • trunk/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h

    r16442 r16629  
    2626#define AR8216_REG_CTRL                 0x0000 
    2727#define   AR8216_CTRL_RESET             BIT(31) 
     28 
     29#define AR8216_REG_GLOBAL_CTRL          0x0030 
     30#define   AR8216_GCTRL_MTU              BITS(0, 10) 
    2831 
    2932#define AR8216_REG_VTU                  0x0040 
Note: See TracChangeset for help on using the changeset viewer.