aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_main.c')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 3ee465dd0b08..8f1d602a883a 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -797,11 +797,12 @@ static int cxgb_up(struct adapter *adap)
797 int must_load; 797 int must_load;
798 798
799 if (!(adap->flags & FULL_INIT_DONE)) { 799 if (!(adap->flags & FULL_INIT_DONE)) {
800 err = t3_check_fw_version(adap); 800 err = t3_check_fw_version(adap, &must_load);
801 if (err == -EINVAL) 801 if (err == -EINVAL) {
802 err = upgrade_fw(adap); 802 err = upgrade_fw(adap);
803 if (err) 803 if (err && must_load)
804 goto out; 804 goto out;
805 }
805 806
806 err = t3_check_tpsram_version(adap, &must_load); 807 err = t3_check_tpsram_version(adap, &must_load);
807 if (err == -EINVAL) { 808 if (err == -EINVAL) {