ixgbe: Avoid needless PHY access on copper phys
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 26 Jun 2015 00:49:57 +0000 (17:49 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 2 Sep 2015 00:08:18 +0000 (17:08 -0700)
commitae8140aa6bf5c7aafc0d9c2f612c5b59bea1ce9f
tree877c6ea37a9f286f808e430d8746411d793529a9
parent897b9349f056d1c1cf5141ded4ec26766d845f8b
ixgbe: Avoid needless PHY access on copper phys

Avoid a needless PHY access on copper phys to save the 10ms wait
time for each PHY access. A helper function is introduced to
actually do the register access and process the contents.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h