net/ice/base: initialize driver NVM data earlier
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:27 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commit5f9c3894669612df96952de481f6e7c9f67a3f82
tree732fb5e1eba8676fefb8056514dbb5e666f46c92
parent381bd0f26559dba0188d766343bfe5eff66f0f21
net/ice/base: initialize driver NVM data earlier

The driver detects and warns about FW rollback mode before getting the NVM
version (through ice_init_nvm) which results in "0.00 0x0 0.0.0" being
printed. Fix this by calling ice_init_nvm earlier.

This could have been fixed by moving ice_print_rollback_msg as well, but
it made more sense to move ice_init_nvm closer to the flow that gets the
FW version information (i.e. control queue init flow).

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_common.c