]> git.baikalelectronics.ru Git - kernel.git/commit
ice: (re)initialize NVM fields when rebuilding
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 6 May 2021 15:40:00 +0000 (08:40 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 7 Jun 2021 15:59:01 +0000 (08:59 -0700)
commit696c16abfd1c110f0ffc86d16ca07c5508617e5a
tree43df12b9f122a7550e90a84c055fa9959ea2d17e
parent8ca7a462001d3ff2a01c633761f8299cb55663b4
ice: (re)initialize NVM fields when rebuilding

After performing a flash update, a device EMP reset may occur. This
reset will cause the newly downloaded firmware to be initialized. When
this happens, the driver still reports the previous NVM version
information.

This is because the NVM versions are cached within the hw structure.
This can be confusing, as the new firmware is in fact running in this
case.

Handle this by calling ice_init_nvm when rebuilding the driver state.
This will update the flash version information and ensures that the
current values are displayed when reporting the NVM versions to the
stack.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c