aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/neta/if_mvneta.c
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2018-08-14 18:58:16 +0000
committerLuiz Otavio O Souza <loos@FreeBSD.org>2018-08-14 18:58:16 +0000
commite13a20dad7636a6953568929efdfd73338bf7373 (patch)
tree548c60fa94756aa96b6024abc368cb99823bf66d /sys/dev/neta/if_mvneta.c
parente112e9d255e25e8377d107841b263eefab2f13a0 (diff)
Disable the auto negotiation if the port is set to fixed-link.
Tested on SG-3100 (ARMADA38X) and Espresso.bin (A37x0). Fixes the network on espresso.bin. Sponsored by: Rubicon Communications, LLC (Netgate)
Notes
Notes: svn path=/head/; revision=337811
Diffstat (limited to 'sys/dev/neta/if_mvneta.c')
-rw-r--r--sys/dev/neta/if_mvneta.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/neta/if_mvneta.c b/sys/dev/neta/if_mvneta.c
index ae3e958b29ec..9b0b2384d74b 100644
--- a/sys/dev/neta/if_mvneta.c
+++ b/sys/dev/neta/if_mvneta.c
@@ -757,6 +757,7 @@ mvneta_attach(device_t self)
} else {
/* Fixed-link, use predefined values */
+ mvneta_update_autoneg(sc, FALSE);
ifmedia_init(&sc->mvneta_ifmedia, 0, mvneta_mediachange,
mvneta_mediastatus);