summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2020-12-02 09:49:35 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2020-12-02 09:49:35 +0000
commite3aaff932b8f898a3c6e6740ebbcf3f1ae46edea (patch)
treebac9e2413d01e7b9c3ed67644daed51e1e181ecc /sys
parent225719e29d8210f24bbeeda35ac239c32c0ca632 (diff)
Enable auto-negotiation on the SerDes links, which allows in-band-status
to work between mvpp(4) and mvsw(4) on the ClearFog GT 8K and hence gives us a nice link up. ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/mvsw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fdt/mvsw.c b/sys/dev/fdt/mvsw.c
index 0901a167c45..5fff81e3a73 100644
--- a/sys/dev/fdt/mvsw.c
+++ b/sys/dev/fdt/mvsw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mvsw.c,v 1.1 2020/11/29 21:09:49 kettenis Exp $ */
+/* $OpenBSD: mvsw.c,v 1.2 2020/12/02 09:49:34 patrick Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
*
@@ -354,6 +354,7 @@ mvsw_serdes_enable(struct mvsw_softc *sc, int node)
val = mvsw_serdes_read(sc, MVSW_SERDES(port),
MDIO_MMD_PHYXS, MVSW_SERDES_BMCR);
val &= ~BMCR_PDOWN;
+ val |= BMCR_AUTOEN;
mvsw_serdes_write(sc, MVSW_SERDES(port),
MDIO_MMD_PHYXS, MVSW_SERDES_BMCR, val);
}