sfc: Read MC firmware version when requested through ethtool
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 24 Feb 2011 23:57:47 +0000 (23:57 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Mon, 28 Feb 2011 23:57:23 +0000 (23:57 +0000)
commite5f0fd278084d79d6be0920043519749374b0507
treeafd06055d8d1058ceabc349396b087698183d237
parenta526f140b22131376b0e49577210e6af73e2b89f
sfc: Read MC firmware version when requested through ethtool

We currently make no use of siena_nic_data::fw_{version,build} except
to format the firmware version for ethtool_get_drvinfo().  Since we
only read the version at start of day, this information is incorrect
after an MC firmware update.  Remove the cached version information
and read it via MCDI whenever it is requested.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/ethtool.c
drivers/net/sfc/mcdi.c
drivers/net/sfc/mcdi.h
drivers/net/sfc/nic.h
drivers/net/sfc/siena.c