0517-net-mediatek-fix-comment-in-rt3050-ethernet-switch-d.patch 1009 B

123456789101112131415161718192021222324
  1. From: Vittorio Gambaletta <openwrt@vittgam.net>
  2. Date: Fri, 01 Jan 2016 00:00:01 +0100
  3. Subject: [PATCH 2/3] net: mediatek: Fix comment in rt3050 ethernet switch driver.
  4. Line 444 is actually enabling all switch ports by setting the disable bits
  5. to 0. This needs to be done because the bootloader sets all ports to disabled
  6. by default (which is the case for at least one router based on RT5350).
  7. So, this patch fixes the comment in line 443.
  8. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
  9. ---
  10. --- a/drivers/net/ethernet/mediatek/esw_rt3050.c
  11. +++ b/drivers/net/ethernet/mediatek/esw_rt3050.c
  12. @@ -440,7 +440,7 @@ static void esw_hw_init(struct rt305x_es
  13. (RT305X_ESW_PORTS_ALL << RT305X_ESW_PFC1_EN_VLAN_S),
  14. RT305X_ESW_REG_PFC1);
  15. - /* Enable Back Pressure, and Flow Control */
  16. + /* Enable all ports, Back Pressure and Flow Control */
  17. esw_w32(esw, ((RT305X_ESW_PORTS_ALL << RT305X_ESW_POC0_EN_BP_S) |
  18. (RT305X_ESW_PORTS_ALL << RT305X_ESW_POC0_EN_FC_S)),
  19. RT305X_ESW_REG_POC0);