mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
Tinkerboard: add kernel patch for eth operstate problem
This commit is contained in:
parent
205db93d59
commit
ce06404716
13
board/tinkerboard/linux-fix-ethernet-operstate.patch
Normal file
13
board/tinkerboard/linux-fix-ethernet-operstate.patch
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user