]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5c68f51f9dc4169f725e204802ea459b957edb5
treeafd06055d8d1058ceabc349396b087698183d237
parentf898535f7b34938bdd1c9f5d22409a29a59f4759
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