aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-01-03 18:03:07 +0000
committerJohn Crispin <blogic@openwrt.org>2016-01-03 18:03:07 +0000
commitcc665dc23abcc1eaf7d5c69f911150851c0b131b (patch)
tree225d612ff2a9f822e9f30a83cb979d1c504ab7ba /target
parent4a1948fe91941cead0fd10c3832ace732ea8bb39 (diff)
downloadupstream-cc665dc23abcc1eaf7d5c69f911150851c0b131b.tar.gz
upstream-cc665dc23abcc1eaf7d5c69f911150851c0b131b.tar.bz2
upstream-cc665dc23abcc1eaf7d5c69f911150851c0b131b.zip
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 <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48095 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
index 4b12e281e7..b2d0f0b4f4 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
@@ -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)),