Skip to content

Commit b248cba

Browse files
unicornxRevySR
authored andcommitted
RISCV64: SG2042: HACK: disable Warning firmware error detected FWSM: 0x00000000 from ixgbe
FIXME: maybe my PCI ethernet card need upgrade firmware. Signed-off-by: Chen Wang <[email protected]> Signed-off-by: Han Gao <[email protected]>
1 parent 88df99d commit b248cba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8409,11 +8409,13 @@ static bool ixgbe_check_fw_error(struct ixgbe_adapter *adapter)
84098409
/* read fwsm.ext_err_ind register and log errors */
84108410
fwsm = IXGBE_READ_REG(hw, IXGBE_FWSM(hw));
84118411

8412+
#if !defined(CONFIG_PCIE_SG2042_HACK)
84128413
/* skip if E610's FW is reloading, warning in that case may be misleading */
84138414
if (fwsm & IXGBE_FWSM_EXT_ERR_IND_MASK ||
84148415
(!(fwsm & IXGBE_FWSM_FW_VAL_BIT) && !(hw->mac.type == ixgbe_mac_e610)))
84158416
e_dev_warn("Warning firmware error detected FWSM: 0x%08X\n",
84168417
fwsm);
8418+
#endif
84178419

84188420
if (hw->mac.ops.fw_recovery_mode && hw->mac.ops.fw_recovery_mode(hw)) {
84198421
e_dev_err("Firmware recovery mode detected. Limiting functionality. Refer to the Intel(R) Ethernet Adapters and Devices User Guide for details on firmware recovery mode.\n");

0 commit comments

Comments
 (0)