]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: use mii_bus to handle MII related ioctls
authorSteve Douthit <stephend@silicom-usa.com>
Thu, 6 Dec 2018 15:50:43 +0000 (15:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Dec 2018 20:22:39 +0000 (12:22 -0800)
commite3345beb1e4be8fefdeb6d722cad800ca1c3bfe8
tree268d0dfb89986bb8dd6c8f4cb160c9cc32890b6d
parent684a96d07ffc067a357b59a15076f3c8cdf34bc1
ixgbe: use mii_bus to handle MII related ioctls

Use the mii_bus callbacks to address the entire clause 22/45 address
space.  Enables userspace to poke switch registers instead of a single
PHY address.

The ixgbe firmware may be polling PHYs in a way that is not protected by
the mii_bus lock.  This isn't new behavior, but as Andrew Lunn pointed
out there are more addresses available for conflicts.

Signed-off-by: Stephen Douthit <stephend@silicom-usa.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c