diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2017-03-14 12:24:42 -0500 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-07-17 19:51:00 -0500 |
commit | e7e8f23777fb5195194960fa2292687405eafb6f (patch) | |
tree | 0c87445d6d7aa3b21c840e9f1f7efedd2797efc1 | |
parent | aef58d13c34282a7acf422755c71d7b9256e9bce (diff) | |
download | FreeBSD-src-e7e8f23777fb5195194960fa2292687405eafb6f.zip FreeBSD-src-e7e8f23777fb5195194960fa2292687405eafb6f.tar.gz |
Add a fix for the KSZ9031RNX errata 5.
Fixes the Auto-Negotiation link-up failure / long link-up time with some partners.
(cherry picked from commit 3f54ce3814dc86a8d0ad44192db7939fd6f5eff3)
-rw-r--r-- | sys/dev/mii/micphy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/mii/micphy.c b/sys/dev/mii/micphy.c index ddd0a19..a33c497 100644 --- a/sys/dev/mii/micphy.c +++ b/sys/dev/mii/micphy.c @@ -220,6 +220,13 @@ ksz9031_load_values(struct mii_softc *sc, phandle_t node) ksz90x1_load_values(sc, node, 2, MII_KSZ9031_CLOCK_PAD_SKEW, "rxc-skew-ps", 0x1f, 0, "txc-skew-ps", 0x1f, 5, NULL, 0, 0, NULL, 0, 0); + + /* + * Fix for errata 5. + * Set the device's Auto-Negotiation FLP (Fast Link Pulse) to 16ms. + */ + ksz9031_write(sc, 0, 0x4, 0x6); + ksz9031_write(sc, 0, 0x3, 0x1a80); } static void |