]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix for PHY NVM interaction problem
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Mon, 28 Sep 2015 18:16:56 +0000 (14:16 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 19 Oct 2015 22:35:38 +0000 (15:35 -0700)
commita82b28624f919b5d005cbf97d7d6847b518d0f4e
tree7bbca39c0ade49e23767ed51e2368cf7d29e43e6
parent4603d349869773aefb356df77c78f66660b3d909
i40e: fix for PHY NVM interaction problem

This patch fixes a problem where the NVMUpdate Tool, when using the PHY
NVM feature, gets bad data from the PHY because of contention on the
MDIO interface from get PHY capability calls from the driver during
regular operations.  The problem is fixed by adding a check if media
is available before calling get PHY capability function because that
bit is not set when device is in PHY interaction mode.

Change-ID: Ib89991b0f841808dd92410f5e8683d6ee3301cd0
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c