summaryrefslogtreecommitdiffstats
path: root/sys/dev/hme
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2004-05-29 18:29:53 +0000
committermarius <marius@FreeBSD.org>2004-05-29 18:29:53 +0000
commite8757e8b1e95f52354d58f8eab92007e3e306f4b (patch)
treea205d9be31b23f06688a641f3587ca2b1eb53b31 /sys/dev/hme
parentab35591f627123ae34119d73d589b19e3a851ae8 (diff)
downloadFreeBSD-src-e8757e8b1e95f52354d58f8eab92007e3e306f4b.zip
FreeBSD-src-e8757e8b1e95f52354d58f8eab92007e3e306f4b.tar.gz
In hme_init() call mii_mediachg() to make sure the current media is set.
This is part 2/2 of fixing autonegotiation on hme(4) using DP83840A PHYs. It appears to also fix the occasional problems to establish a link on hme(4) using LU6612 PHYs and shouldn't hurt on those using QS6612 PHYs. Obtained from: NetBSD
Diffstat (limited to 'sys/dev/hme')
-rw-r--r--sys/dev/hme/if_hme.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c
index e2c22fa..256b513 100644
--- a/sys/dev/hme/if_hme.c
+++ b/sys/dev/hme/if_hme.c
@@ -34,7 +34,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * from: NetBSD: hme.c,v 1.20 2000/12/14 06:27:25 thorpej Exp
+ * from: NetBSD: hme.c,v 1.29 2002/05/05 03:02:38 thorpej Exp
*/
#include <sys/cdefs.h>
@@ -817,6 +817,9 @@ hme_init(void *xsc)
HME_MAC_READ_4(sc, HME_MACI_TXCFG));
#endif
+ /* Set the current media. */
+ mii_mediachg(sc->sc_mii);
+
/* Start the one second timer. */
callout_reset(&sc->sc_tick_ch, hz, hme_tick, sc);
OpenPOWER on IntegriCloud