ixgbe: Return error when getting PHY address if PHY access is not supported
authorMark D Rustad <mark.d.rustad@intel.com>
Wed, 31 Aug 2016 17:34:28 +0000 (10:34 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 14:43:06 +0000 (07:43 -0700)
commite0f06bba9629987fb3ec1d6928bf17ef689702e8
tree15fe0f6169be03e7effa68760bae625013cf6ea6
parenta9e2971b8cd3ef469de0112ba15778b5b98ad72e
ixgbe: Return error when getting PHY address if PHY access is not supported

In cases where PHY register access is not supported, don't mislead
a caller into thinking that it is supported by returning a PHY
address. Instead, return -EOPNOTSUPP when PHY access is not
supported.

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_main.c