]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:33:03 +0000 (08:33 -0800)
commite8b9fd7f823846c43193121d6677baf0df01d3bc
treee1429682bc83883008b7d91110bfa1f6b914d0f7
parentff4a203198207f40860ff215d502b8fd87df3677
i40e: fix for PHY NVM interaction problem

Orabug: 22342532

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>
(cherry picked from commit 8589af70d0879a68c93ef77505a6234d22b1b1a7)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_common.c