Changeset 18148


Ignore:
Timestamp:
01/11/12 19:56:58 (17 months ago)
Author:
BrainSlayer
Message:

test fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/pb42/linux-3.2/drivers/net/phy/ar8216.c

    r18147 r18148  
    4848        bool port4_phy; 
    4949        char buf[80]; 
     50 
     51        bool init; 
    5052 
    5153        /* all fields below are cleared on reset */ 
     
    551553 
    552554        memset(portmask, 0, sizeof(portmask)); 
    553         if (priv->vlan) { 
     555        if (!priv->init) { 
    554556                /* calculate the port destination masks and load vlans 
    555557                 * into the vlan translation unit */ 
     
    878880        } 
    879881 
     882        priv->init = true; 
     883 
    880884        if (priv->chip == AR8316) { 
    881885                ret = ar8316_hw_init(priv); 
     
    912916                dev->netdev_ops = &priv->ndo; 
    913917        } 
     918 
     919        priv->init = false; 
    914920 
    915921done: 
Note: See TracChangeset for help on using the changeset viewer.