summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsf <sf@openbsd.org>2018-04-29 08:47:10 +0000
committersf <sf@openbsd.org>2018-04-29 08:47:10 +0000
commit0fa82dbe0565bec071457ca8e697b394995b16a6 (patch)
tree2c2d83b8abcecf96c915bb528c3cb10fd7429d46
parentem: Make em_get_software_flag() recursive (diff)
downloadwireguard-openbsd-0fa82dbe0565bec071457ca8e697b394995b16a6.tar.xz
wireguard-openbsd-0fa82dbe0565bec071457ca8e697b394995b16a6.zip
em: Add magic delay for HP elitebook 820 G3
Add another magic 1ms delay that seems to help with some remaining "Hardware Initialization Failed" issues on an HP elitebook 820 G3 with i219LM. A printf() at the same place helps, too. ok mikeb@
-rw-r--r--sys/dev/pci/if_em_hw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_em_hw.c b/sys/dev/pci/if_em_hw.c
index d7df8ebecac..77adfe5707b 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.101 2018/04/29 08:45:01 sf Exp $ */
+/* $OpenBSD: if_em_hw.c,v 1.102 2018/04/29 08:47:10 sf Exp $ */
/*
* if_em_hw.c Shared functions for accessing and configuring the MAC
*/
@@ -1493,6 +1493,8 @@ em_init_hw(struct em_hw *hw)
/* Set the media type and TBI compatibility */
em_set_media_type(hw);
+ /* Magic delay that improves problems with i219LM on HP Elitebook */
+ msec_delay(1);
/* Must be called after em_set_media_type because media_type is used */
em_initialize_hardware_bits(hw);