Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dff04bce authored by Hariprasad Shenai's avatar Hariprasad Shenai Committed by David S. Miller
Browse files

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: default avatarHariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent df64e4d3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1213,6 +1213,8 @@ int t4_load_fw(struct adapter *adap, const u8 *fw_data, unsigned int size)
	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;
}