]> 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)
commit123f1fedc24fce45e3239391637283291a953a68
tree15fe0f6169be03e7effa68760bae625013cf6ea6
parent92eae9783edd1c99c0d47dba95adaa0bf1d13963
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