i40e/base: acquire NVM ownership before reading it
authorHelin Zhang <helin.zhang@intel.com>
Tue, 8 Mar 2016 08:14:10 +0000 (16:14 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 16:21:58 +0000 (17:21 +0100)
commit2427bcaa0ae4e41e46a17fc46e59503262470ef6
tree2544f1c7c95311e1bd1caefe9630f2dbf65fe0e3
parent14dc067052ce614b8d2bedae6e6b0f3b8b65c029
i40e/base: acquire NVM ownership before reading it

SW needs to acquire the NVM ownership before issuing an AQ read
to the X722 NVM otherwise it will get EBUSY from the firmware.
Also it should be released when done.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
drivers/net/i40e/base/i40e_nvm.c