net/bnx2x: fix to add PHY lock
authorRasesh Mody <rasesh.mody@cavium.com>
Sat, 29 Sep 2018 05:42:41 +0000 (05:42 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:48 +0000 (18:53 +0200)
commita9b58b15ed5186fae34fe20faf74be339632bebc
tree7c67fc88515147c75e062f74aef936d632466634
parent0f6ebeee2402441b20e45ea27f0ff2a4fc2c165f
net/bnx2x: fix to add PHY lock

This patch adds phy_lock, acquire/release the lock when performing
PHY transactions. Without this fix driver can run into synchronization
issues with management FW when modifying PHY settings.

Fixes: 540a211084a7 ("bnx2x: driver core")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/ecore_reg.h