i40e/base: support NVM read on X722
authorHelin Zhang <helin.zhang@intel.com>
Tue, 8 Mar 2016 08:14:12 +0000 (16:14 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 16:23:21 +0000 (17:23 +0100)
commit7d1b28461e174fd33987227e4de65a6158a2cbf3
tree52e8bd5ccb05aa6f7a66ae55b1c391a768c73fd7
parentdd59229c8bb4555727b75a2d373fcf026e8871de
i40e/base: support NVM read on X722

In X722, NVM reads can't be done through SRCTL registers.
And require AQ calls, which require grabbing the NVM lock.
Unfortunately some paths need the lock to be acquired once
and do a whole bunch of stuff and then release it.
This patch creates an unsafe version of the read calls, so
that it can be called from the paths that need the bulk access.

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
drivers/net/i40e/base/i40e_prototype.h