diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2014-12-03 19:32:54 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-09 13:32:00 -0500 |
commit | dff04bceefdf1ceee612e46cba801f4d1ba93992 (patch) | |
tree | dbeba7254290580db0cf46e191bd13eb229bca14 /drivers/net/ethernet/chelsio | |
parent | df64e4d38c904dd3210f097c5e9bb8b036af55c5 (diff) |
cxgb4: Update firmware version after flashing it via ethtool
After successfully loading new firmware, reload the new firmware's version
number information so "ethtool -i", etc. will report the right value
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 3f8876fb07c0..a9323bdb3585 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -1213,6 +1213,8 @@ out: if (ret) dev_err(adap->pdev_dev, "firmware download failed, error %d\n", ret); + else + ret = t4_get_fw_version(adap, &adap->params.fw_vers); return ret; } |