i40e: Add functions which apply correct PHY access method for read and write operation
commitf62ba91458b508c957f3e0f98f5c2a72633badcb
authorMichal Kosiarz <michal.kosiarz@intel.com>
Mon, 21 Nov 2016 21:03:50 +0000 (21 13:03 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Dec 2016 05:09:39 +0000 (6 21:09 -0800)
tree4c45a9e239dc28a0c5c6f838997f90635036b80d
parent60f000a4d839a8f850fb2154aa26dc3f552a4667
i40e: Add functions which apply correct PHY access method for read and write operation

Depending on external PHY type, register access method should be
different. Clause22 or Clause45 can be chosen for different PHYs.
Implemented functions apply correct access method for used device.

Change-ID: If39d5f0da9c0b905a8cbdc1ab89885535e7d0426
Signed-off-by: Michal Kosiarz <michal.kosiarz@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
drivers/net/ethernet/intel/i40e/i40e_prototype.h
drivers/net/ethernet/intel/i40evf/i40e_prototype.h