net/i40e/base: fix NVM access interfering
authorJingjing Wu <jingjing.wu@intel.com>
Sat, 10 Dec 2016 11:24:44 +0000 (19:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:39:27 +0000 (19:39 +0100)
commitc5846a125b261c4960561f72848c270202c1596c
treef2ebe65417fd5df21f490b0586b73a07b12b94be
parent3bc39f5552adb24b8cf18861c1ee621ab441c71d
net/i40e/base: fix NVM access interfering

Acquire NVM lock before reads on all devices.  Previously, locks were
only used for X722 and later.  Fixes an issue where simultaneous X710
NVM accesses were interfering with each other.

Fixes: 8db9e2a1b232 ("i40e: base driver")

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/base/i40e_nvm.c