ixgbe: Acquire PHY semaphore before device reset
authorPaul Greenwalt <paul.greenwalt@intel.com>
Mon, 13 Mar 2017 09:47:56 +0000 (05:47 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 29 Apr 2017 02:02:31 +0000 (19:02 -0700)
commit6133406be1aabfb041f024109efc41756970800e
tree7ced19dfa3174b7476d3cb719c9583df650bc7ee
parent4c042a80c1776477d8f13d0b214809a2eaedf01d
ixgbe: 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: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c