mediatek: update patches
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.4 / 0089-net-next-mediatek-increase-watchdog_timeo.patch
1 From 2cbf3f95a49925317ef4138ceaf7f7f30f353f0f Mon Sep 17 00:00:00 2001
2 From: John Crispin <john@phrozen.org>
3 Date: Tue, 3 May 2016 03:17:53 +0200
4 Subject: [PATCH 089/102] net-next: mediatek: increase watchdog_timeo
5
6 During stress testing, after reducing the threshold value, we have seen
7 TX timeouts that were caused by the watchdog_timeo value being too low.
8 Increase the value to 5 * HZ which is a value commonly used by many other
9 drivers.
10
11 Signed-off-by: John Crispin <john@phrozen.org>
12 ---
13 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
17 index d03f339..52cdb3a 100644
18 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
19 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
20 @@ -1720,7 +1720,7 @@ static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
21 mac->hw_stats->reg_offset = id * MTK_STAT_OFFSET;
22
23 SET_NETDEV_DEV(eth->netdev[id], eth->dev);
24 - eth->netdev[id]->watchdog_timeo = HZ;
25 + eth->netdev[id]->watchdog_timeo = 5 * HZ;
26 eth->netdev[id]->netdev_ops = &mtk_netdev_ops;
27 eth->netdev[id]->base_addr = (unsigned long)eth->base;
28 eth->netdev[id]->vlan_features = MTK_HW_FEATURES &
29 --
30 1.7.10.4
31