diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2012-03-26 20:47:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-27 22:41:34 -0400 |
commit | 452427b015b1b0cbbef7b6207908726837d39d57 (patch) | |
tree | 221356cb1d3447160c5ad5741cf5e5107801540e /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | |
parent | a2daf263107ba3eb6db33931881731fa51c95045 (diff) | |
download | op-kernel-dev-452427b015b1b0cbbef7b6207908726837d39d57.zip op-kernel-dev-452427b015b1b0cbbef7b6207908726837d39d57.tar.gz |
bnx2x: previous driver unload revised
The flow in which the bnx2x driver starts after a previous driver
has been terminated in an 'unclean' manner has several bugs and
FW risks, which makes it possible for the driver to fail after
boot-from-SAN or kdump.
This patch contains a revised flow which performs a safer
initialization, solving the possible crash scenarios.
Notice this patch contains lines with over 80 characters, as it
keeps print-strings in a single line.
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h index 8b16338..5c27454 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h @@ -431,6 +431,9 @@ void bnx2x_panic_dump(struct bnx2x *bp); void bnx2x_fw_dump_lvl(struct bnx2x *bp, const char *lvl); +/* validate currect fw is loaded */ +bool bnx2x_test_firmware_version(struct bnx2x *bp, bool is_err); + /* dev_close main block */ int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode); |