diff options
author | Tomer Tayar <Tomer.Tayar@cavium.com> | 2017-05-23 09:41:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-24 15:17:19 -0400 |
commit | fc561c8bfe831c1509b7f6af3f45fbea78632539 (patch) | |
tree | f4024fd38c28dcf462fbd2cbaa16fb2f0db4e16d /drivers/net/ethernet/qlogic/qed/qed_dev.c | |
parent | qed: !main_ptt for tunnel configuration (diff) | |
download | linux-dev-fc561c8bfe831c1509b7f6af3f45fbea78632539.tar.xz linux-dev-fc561c8bfe831c1509b7f6af3f45fbea78632539.zip |
qed: Log incorrectly installed board
In case nvram layout of board is incorrect, board may exhibit peculiar
oddities. Log such a rare event.
Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_dev.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_dev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_dev.c b/drivers/net/ethernet/qlogic/qed/qed_dev.c index 9dd28baba5a1..b01df2400075 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_dev.c +++ b/drivers/net/ethernet/qlogic/qed/qed_dev.c @@ -1698,6 +1698,11 @@ int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params) return mfw_rc; } + /* Check if there is a DID mismatch between nvm-cfg/efuse */ + if (param & FW_MB_PARAM_LOAD_DONE_DID_EFUSE_ERROR) + DP_NOTICE(p_hwfn, + "warning: device configuration is not supported on this board type. The device may not function as expected.\n"); + /* send DCBX attention request command */ DP_VERBOSE(p_hwfn, QED_MSG_DCB, |