Author: blogic
Date: 2016-01-03 19:03:07 +0100 (Sun, 03 Jan 2016)
New Revision: 48095

Modified:
   
branches/chaos_calmer/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
Log:
ramips: Fix comment in rt3052 ethernet switch driver.

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]>

Modified: 
branches/chaos_calmer/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
===================================================================
--- 
branches/chaos_calmer/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
    2016-01-03 18:02:51 UTC (rev 48094)
+++ 
branches/chaos_calmer/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
    2016-01-03 18:03:07 UTC (rev 48095)
@@ -457,7 +457,7 @@
                      (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)),
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to