0062-net-mediatek-watchdog_timeo-was-not-set.patch 907 B

1234567891011121314151617181920212223
  1. From 387257cbd6f3f92de71e2f578d3a9414d0dada27 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Wed, 30 Mar 2016 03:18:17 +0200
  4. Subject: [PATCH 062/102] net: mediatek: watchdog_timeo was not set
  5. The original commit failed to set watchdog_timeo. This patch sets
  6. watchdog_timeo to HZ.
  7. Signed-off-by: John Crispin <blogic@openwrt.org>
  8. ---
  9. drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 +
  10. 1 file changed, 1 insertion(+)
  11. --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  12. +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  13. @@ -1645,6 +1645,7 @@ static int mtk_add_mac(struct mtk_eth *e
  14. mac->hw_stats->reg_offset = id * MTK_STAT_OFFSET;
  15. SET_NETDEV_DEV(eth->netdev[id], eth->dev);
  16. + eth->netdev[id]->watchdog_timeo = HZ;
  17. eth->netdev[id]->netdev_ops = &mtk_netdev_ops;
  18. eth->netdev[id]->base_addr = (unsigned long)eth->base;
  19. eth->netdev[id]->vlan_features = MTK_HW_FEATURES &