aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_main.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2008-12-16 04:51:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-16 04:51:47 -0500
commit8207befa199c9ade670d1cf9a5bcdc76310751bd (patch)
tree4ba183ae8406744f5c37f9e1fd740948a0ba678a /drivers/net/cxgb3/cxgb3_main.c
parent5ad258c0a85a7cc03c46874e8a26c7e9b4dfb90d (diff)
cxgb3: untie strict FW matching
The NIC driver can work with mutliple versions of the FW. Let the driver load when the embedded FW does not match, and the FW update mechanism failed. The iWARP module will make its own loading decision. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_main.c')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 9e8727c5eced..2847f947499d 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -958,21 +958,22 @@ release_tpsram:
958static int cxgb_up(struct adapter *adap) 958static int cxgb_up(struct adapter *adap)
959{ 959{
960 int err; 960 int err;
961 int must_load;
962 961
963 if (!(adap->flags & FULL_INIT_DONE)) { 962 if (!(adap->flags & FULL_INIT_DONE)) {
964 err = t3_check_fw_version(adap, &must_load); 963 err = t3_check_fw_version(adap);
965 if (err == -EINVAL) { 964 if (err == -EINVAL) {
966 err = upgrade_fw(adap); 965 err = upgrade_fw(adap);
967 if (err && must_load) 966 CH_WARN(adap, "FW upgrade to %d.%d.%d %s\n",
968 goto out; 967 FW_VERSION_MAJOR, FW_VERSION_MINOR,
968 FW_VERSION_MICRO, err ? "failed" : "succeeded");
969 } 969 }
970 970
971 err = t3_check_tpsram_version(adap, &must_load); 971 err = t3_check_tpsram_version(adap);
972 if (err == -EINVAL) { 972 if (err == -EINVAL) {
973 err = update_tpsram(adap); 973 err = update_tpsram(adap);
974 if (err && must_load) 974 CH_WARN(adap, "TP upgrade to %d.%d.%d %s\n",
975 goto out; 975 TP_VERSION_MAJOR, TP_VERSION_MINOR,
976 TP_VERSION_MICRO, err ? "failed" : "succeeded");
976 } 977 }
977 978
978 /* 979 /*