]> asedeno.scripts.mit.edu Git - linux.git/commit
ice: fix and consolidate logging of NVM/firmware version information
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 6 Feb 2020 09:20:06 +0000 (01:20 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 12 Feb 2020 19:48:41 +0000 (11:48 -0800)
commitfbf1e1f6988e70287b1bfcad4f655ca96b681929
tree3342e59f9f9ae7bc57bfd7849b29ab7d0a91b94a
parentb55e603252acdf229501d27f6ecb78107cbb1855
ice: fix and consolidate logging of NVM/firmware version information

Logging the firmware/NVM information during driver load is redundant since
that information is also available via ethtool.  Move the functionality
found in ice_nvm_version_str() directly into ice_get_drvinfo() and remove
calling the former and logging that info during driver probe.  This also
gets rid of a bug in ice_nvm_version_str() where it returns a pointer to
a buffer which is free'ed when that function exits.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_lib.h
drivers/net/ethernet/intel/ice/ice_main.c