kernel: bump kernel 4.4 to 4.4.129 for 17.01
[openwrt/openwrt.git] / target / linux / ramips / patches-4.4 / 0517-net-mediatek-fix-comment-in-rt3050-ethernet-switch-d.patch
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
5 Line 444 is actually enabling all switch ports by setting the disable bits
6 to 0. This needs to be done because the bootloader sets all ports to disabled
7 by default (which is the case for at least one router based on RT5350).
8
9 So, this patch fixes the comment in line 443.
10
11 Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
12 ---
13
14 --- a/drivers/net/ethernet/mediatek/esw_rt3050.c
15 +++ b/drivers/net/ethernet/mediatek/esw_rt3050.c
16 @@ -440,7 +440,7 @@ static void esw_hw_init(struct rt305x_es
17 (RT305X_ESW_PORTS_ALL << RT305X_ESW_PFC1_EN_VLAN_S),
18 RT305X_ESW_REG_PFC1);
19
20 - /* Enable Back Pressure, and Flow Control */
21 + /* Enable all ports, Back Pressure and Flow Control */
22 esw_w32(esw, ((RT305X_ESW_PORTS_ALL << RT305X_ESW_POC0_EN_BP_S) |
23 (RT305X_ESW_PORTS_ALL << RT305X_ESW_POC0_EN_FC_S)),
24 RT305X_ESW_REG_POC0);