em: restore link state probing for 82574 chipsets

This matches the Intel 7.6.2 driver code to restore "no carrier"
state transitions in the 82574 chipsets.

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211219
Also see: https://svnweb.freebsd.org/base?view=revision&revision=286831
This commit is contained in:
Franco Fichtner 2017-01-10 22:51:59 +01:00
parent 6b1cb806dc
commit c8eb7db1e2

View file

@ -5150,8 +5150,8 @@ em_enable_intr(struct adapter *adapter)
u32 ims_mask = IMS_ENABLE_MASK;
if (hw->mac.type == e1000_82574) {
E1000_WRITE_REG(hw, EM_EIAC, adapter->ims);
ims_mask |= adapter->ims;
E1000_WRITE_REG(hw, EM_EIAC, EM_MSIX_MASK);
ims_mask |= EM_MSIX_MASK;
}
E1000_WRITE_REG(hw, E1000_IMS, ims_mask);
}