Changeset 26673


Ignore:
Timestamp:
2011-04-15T02:20:59+02:00 (7 years ago)
Author:
nbd
Message:

adm5120: fix promiscuous mode handling (patch from #8581)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/drivers/net/adm5120sw.c

    r19017 r26673  
    963963 
    964964        /* Check if there is any vlan in promisc mode. */ 
    965         if (t & (SWITCH_PORTS_NOCPU << CPUP_CONF_DUNP_SHIFT)) 
     965        if (~t & (SWITCH_PORTS_NOCPU << CPUP_CONF_DUNP_SHIFT)) 
     966                t |= CPUP_CONF_BTM;  /* Enable Bridge Testing Mode */ 
     967        else 
    966968                t &= ~CPUP_CONF_BTM; /* Disable Bridge Testing Mode */ 
    967         else 
    968                 t |= CPUP_CONF_BTM;  /* Enable Bridge Testing Mode */ 
    969969 
    970970        sw_write_reg(SWITCH_REG_CPUP_CONF, t); 
Note: See TracChangeset for help on using the changeset viewer.