cxgbe(4): Clear FW_OK if the firmware reports an error.

Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2019-01-04 04:15:17 +00:00
parent 253b638eab
commit 1a35ae9353
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342758

View File

@ -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;
}
}
/*