ramips: Fix comment in rt3052 ethernet switch driver.
authorJohn Crispin <[email protected]>
Sun, 3 Jan 2016 18:03:07 +0000 (18:03 +0000)
committerJohn Crispin <[email protected]>
Sun, 3 Jan 2016 18:03:07 +0000 (18:03 +0000)
Line 461 is actually enabling all switch ports by setting the disable bits
to 0. This needs to be done because the bootloader sets all ports to disabled
by default (which is the case for at least one router based on RT5350).

So, this patch fixes the comment in line 460.

Signed-off-by: Vittorio Gambaletta <[email protected]>
SVN-Revision: 48095

target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c

index 4b12e281e7e40c329d85e245f8d3857b5e03a512..b2d0f0b4f451ca9c9330ef8d1f3d29b52297c780 100644 (file)
@@ -457,7 +457,7 @@ static void esw_hw_init(struct rt305x_esw *esw)
                      (RT305X_ESW_PORTS_ALL << RT305X_ESW_PFC1_EN_VLAN_S),
                      RT305X_ESW_REG_PFC1);
 
-       /* Enable Back Pressure, and Flow Control */
+       /* Enable all ports, Back Pressure and Flow Control */
        esw_w32(esw,
                      ((RT305X_ESW_PORTS_ALL << RT305X_ESW_POC0_EN_BP_S) |
                       (RT305X_ESW_PORTS_ALL << RT305X_ESW_POC0_EN_FC_S)),