From ce0640471632848b2c3a0dbbe0517ac1dc26fbe6 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Wed, 23 Jan 2019 21:44:22 +0200 Subject: [PATCH] Tinkerboard: add kernel patch for eth operstate problem --- .../tinkerboard/linux-fix-ethernet-operstate.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 board/tinkerboard/linux-fix-ethernet-operstate.patch diff --git a/board/tinkerboard/linux-fix-ethernet-operstate.patch b/board/tinkerboard/linux-fix-ethernet-operstate.patch new file mode 100644 index 0000000000..b066366422 --- /dev/null +++ b/board/tinkerboard/linux-fix-ethernet-operstate.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +index 2844b497464d..a4b0bb432368 100644 +--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ++++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +@@ -3060,6 +3060,8 @@ int stmmac_dvr_probe(struct device *device, + goto error_netdev_register; + } + ++ netif_carrier_off(ndev); ++ + wake_lock_init(&priv->plat->wol_wake_lock, WAKE_LOCK_SUSPEND, "wol_wake_lock"); + + return ret;