]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.120/tg3-enable-phy-reset-in-mtu-change-path-for-5720.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.120 / tg3-enable-phy-reset-in-mtu-change-path-for-5720.patch
1 From foo@baz Wed Feb 28 16:19:30 CET 2018
2 From: Siva Reddy Kallam <siva.kallam@broadcom.com>
3 Date: Fri, 22 Dec 2017 16:05:29 +0530
4 Subject: tg3: Enable PHY reset in MTU change path for 5720
5
6 From: Siva Reddy Kallam <siva.kallam@broadcom.com>
7
8
9 [ Upstream commit e60ee41aaf898584205a6af5c996860d0fe6a836 ]
10
11 A customer noticed RX path hang when MTU is changed on the fly while
12 running heavy traffic with NCSI enabled for 5717 and 5719. Since 5720
13 belongs to same ASIC family, we observed same issue and same fix
14 could solve this problem for 5720.
15
16 Signed-off-by: Siva Reddy Kallam <siva.kallam@broadcom.com>
17 Signed-off-by: Michael Chan <michael.chan@broadcom.com>
18 Signed-off-by: David S. Miller <davem@davemloft.net>
19 Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21 ---
22 drivers/net/ethernet/broadcom/tg3.c | 3 ++-
23 1 file changed, 2 insertions(+), 1 deletion(-)
24
25 --- a/drivers/net/ethernet/broadcom/tg3.c
26 +++ b/drivers/net/ethernet/broadcom/tg3.c
27 @@ -14240,7 +14240,8 @@ static int tg3_change_mtu(struct net_dev
28 */
29 if (tg3_asic_rev(tp) == ASIC_REV_57766 ||
30 tg3_asic_rev(tp) == ASIC_REV_5717 ||
31 - tg3_asic_rev(tp) == ASIC_REV_5719)
32 + tg3_asic_rev(tp) == ASIC_REV_5719 ||
33 + tg3_asic_rev(tp) == ASIC_REV_5720)
34 reset_phy = true;
35
36 err = tg3_restart_hw(tp, reset_phy);