Changeset 35583


Ignore:
Timestamp:
2013-02-13T17:04:18+01:00 (5 years ago)
Author:
hauke
Message:

switch: improve robo_switch_enable()

This is based on a patch by jcharest and the Broadcom SDK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/src/switch-robo.c

    r35582 r35583  
    238238                } 
    239239 
     240                /* No spanning tree for unmanaged mode */ 
    240241                last_port = (robo.devid == ROBO_DEVICE_ID_5398) ? 
    241                                 ROBO_PORT6_CTRL : ROBO_PORT3_CTRL; 
    242                 for (i = ROBO_PORT0_CTRL; i < last_port + 1; i++) 
     242                                ROBO_PORT7_CTRL : ROBO_PORT4_CTRL; 
     243                for (i = ROBO_PORT0_CTRL; i <= last_port; i++) 
    243244                        robo_write16(ROBO_CTRL_PAGE, i, 0); 
     245 
     246                /* No spanning tree on IMP port too */ 
     247                robo_write16(ROBO_CTRL_PAGE, ROBO_IM_PORT_CTRL, 0); 
    244248        } 
    245249 
Note: See TracChangeset for help on using the changeset viewer.