diff options
author | 2018-04-07 11:53:53 +0000 | |
---|---|---|
committer | 2018-04-07 11:53:53 +0000 | |
commit | 21e1664c83670aba843c105ae9f5b1ca671f568f (patch) | |
tree | 66f6991de59ffee3668c3fa8316afa26457e8d89 /sys/dev | |
parent | em: Print error code and phy/mac type (diff) | |
download | wireguard-openbsd-21e1664c83670aba843c105ae9f5b1ca671f568f.tar.xz wireguard-openbsd-21e1664c83670aba843c105ae9f5b1ca671f568f.zip |
em: Increase delay after reset to 20ms
This is the value in freebsd for ich8lan.
ok mikeb@ jsg@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_em_hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em_hw.c b/sys/dev/pci/if_em_hw.c index df0fa571736..3cd8b792fe0 100644 --- a/sys/dev/pci/if_em_hw.c +++ b/sys/dev/pci/if_em_hw.c @@ -31,7 +31,7 @@ *******************************************************************************/ -/* $OpenBSD: if_em_hw.c,v 1.97 2018/03/16 06:30:50 jsg Exp $ */ +/* $OpenBSD: if_em_hw.c,v 1.98 2018/04/07 11:53:53 sf Exp $ */ /* * if_em_hw.c Shared functions for accessing and configuring the MAC */ @@ -945,7 +945,7 @@ em_reset_hw(struct em_hw *hw) } em_get_software_flag(hw); E1000_WRITE_REG(hw, CTRL, (ctrl | E1000_CTRL_RST)); - msec_delay(5); + msec_delay(20); /* Ungate automatic PHY configuration on non-managed 82579 */ if (hw->mac_type == em_pch2lan && !hw->phy_reset_disable && |