]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit014e893419b1f8623de0d48bc26ffa0090890359
tree15fe0f6169be03e7effa68760bae625013cf6ea6
parent68515818f702fb036082497b241022c1aada89cb
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