aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2019-01-04 04:15:17 +0000
committerNavdeep Parhar <np@FreeBSD.org>2019-01-04 04:15:17 +0000
commit1a35ae9353cdd8c5b3cba6bf8293a705abd219ce (patch)
tree4c42b3b246509deff6874f8d62ada23940d8297d /sys
parent253b638eabd53fe4a1f26dbffbc7387180cbdaa0 (diff)
downloadsrc-1a35ae9353cdd8c5b3cba6bf8293a705abd219ce.tar.gz
src-1a35ae9353cdd8c5b3cba6bf8293a705abd219ce.zip
cxgbe(4): Clear FW_OK if the firmware reports an error.
Sponsored by: Chelsio Communications
Notes
Notes: svn path=/head/; revision=342758
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cxgbe/common/t4_hw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c
index 90317e500424..7116b38b1639 100644
--- a/sys/dev/cxgbe/common/t4_hw.c
+++ b/sys/dev/cxgbe/common/t4_hw.c
@@ -211,9 +211,11 @@ static void t4_report_fw_error(struct adapter *adap)
u32 pcie_fw;
pcie_fw = t4_read_reg(adap, A_PCIE_FW);
- if (pcie_fw & F_PCIE_FW_ERR)
+ if (pcie_fw & F_PCIE_FW_ERR) {
CH_ERR(adap, "Firmware reports adapter error: %s\n",
reason[G_PCIE_FW_EVAL(pcie_fw)]);
+ adap->flags &= ~FW_OK;
+ }
}
/*