summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/em/if_em.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c
index 7d3c539..c189eb2 100644
--- a/sys/dev/em/if_em.c
+++ b/sys/dev/em/if_em.c
@@ -954,7 +954,13 @@ em_init_locked(struct em_softc *sc)
/* Get the latest mac address, User can use a LAA */
bcopy(IF_LLADDR(sc->ifp), sc->hw.mac_addr, ETHER_ADDR_LEN);
- em_init_rx_addrs(&sc->hw);
+
+ /* Initialize the hardware */
+ if (em_hardware_init(sc)) {
+ device_printf(dev, "Unable to initialize the hardware\n");
+ return;
+ }
+ em_update_link_status(sc);
if (ifp->if_capenable & IFCAP_VLAN_HWTAGGING)
em_enable_vlans(sc);
OpenPOWER on IntegriCloud