Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/ixgbe Call ixgbe_init_swfw_semaphore(hw) before ...
details: https://anonhg.NetBSD.org/src/rev/820a7e756804
branches: trunk
changeset: 448164:820a7e756804
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jan 23 09:01:24 2019 +0000
description:
Call ixgbe_init_swfw_semaphore(hw) before calling ixgbe_check_wol_support()
because ixgbe_check_wol_support()->ixgbe_check_wol_support()->
ixgbe_get_device_caps() accesses semaphore.
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 74fff771dde0 -r 820a7e756804 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Jan 23 07:41:54 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Jan 23 09:01:24 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.171 2019/01/23 06:56:19 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.172 2019/01/23 09:01:24 msaitoh Exp $ */
/******************************************************************************
@@ -876,6 +876,9 @@
} else
adapter->num_segs = IXGBE_82598_SCATTER;
+ /* Ensure SW/FW semaphore is free */
+ ixgbe_init_swfw_semaphore(hw);
+
hw->mac.ops.set_lan_id(hw);
ixgbe_init_device_features(adapter);
@@ -902,9 +905,6 @@
ixgbe_check_fan_failure(adapter, esdp, FALSE);
}
- /* Ensure SW/FW semaphore is free */
- ixgbe_init_swfw_semaphore(hw);
-
/* Enable EEE power saving */
if (adapter->feat_en & IXGBE_FEATURE_EEE)
hw->mac.ops.setup_eee(hw, TRUE);
Home |
Main Index |
Thread Index |
Old Index