summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2006-03-02 09:04:00 +0000
committerjsg <jsg@openbsd.org>2006-03-02 09:04:00 +0000
commite1745a550c88c05990897c0f7cae4a9c7adbfc91 (patch)
tree5dcb766433d48e2a51bf812c6023b927d3deba53
parentfrom mickey, like on i386: (diff)
downloadwireguard-openbsd-e1745a550c88c05990897c0f7cae4a9c7adbfc91.tar.xz
wireguard-openbsd-e1745a550c88c05990897c0f7cae4a9c7adbfc91.zip
Put the PHY update/reset call in nfe_init back to the spot it was at
before Rx/Tx/Interrupts are enabled. This makes <fredd at cse.sc.edu>'s nfe+icsphy setup work again. Tested on nfe+eephy by otto@ and myself, nfe+ciphy by otto@ and nfe+rlphy by wilfried@ ok deraadt@
-rw-r--r--sys/dev/pci/if_nfe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index 15aee85fa2d..bec5ec4070c 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.51 2006/02/26 19:25:41 damien Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.52 2006/03/02 09:04:00 jsg Exp $ */
/*-
* Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -1107,6 +1107,8 @@ nfe_init(struct ifnet *ifp)
/* set Rx filter */
nfe_setmulti(sc);
+ nfe_ifmedia_upd(ifp);
+
/* enable Rx */
NFE_WRITE(sc, NFE_RX_CTL, NFE_RX_START);
@@ -1118,8 +1120,6 @@ nfe_init(struct ifnet *ifp)
/* enable interrupts */
NFE_WRITE(sc, NFE_IRQ_MASK, NFE_IRQ_WANTED);
- nfe_ifmedia_upd(ifp);
-
timeout_add(&sc->sc_tick_ch, hz);
ifp->if_flags |= IFF_RUNNING;