net/ixgbe/base: acquire PHY semaphore before device reset
authorWei Dai <wei.dai@intel.com>
Tue, 18 Apr 2017 06:57:00 +0000 (14:57 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 12:46:16 +0000 (14:46 +0200)
commitc70a162ad4758256e40d0af0154396d330eb5fe6
treead6ff727f51fbdd21db78163b70ba66cc613a5d7
parentb8628a0e5e75115acfb29185bf66fe66a578f513
net/ixgbe/base: acquire PHY semaphore before device reset

A recent firmware change fixed an issue to acquire the PHY semaphore
before accessing PHY registers. This led to a case where SW can issue
a device reset clearing the MDIO registers. This patch makes SW acquire
the PHY semaphore before issuing a device reset.

Signed-off-by: Wei Dai <wei.dai@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
drivers/net/ixgbe/base/ixgbe_x540.c
drivers/net/ixgbe/base/ixgbe_x550.c