netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Add mii_bus to ixgbe driver for dsa devs
@ 2018-11-29 18:54 Steve Douthit
  2018-11-29 18:54 ` [PATCH net-next 1/2] ixgbe: register a mdiobus Steve Douthit
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Steve Douthit @ 2018-11-29 18:54 UTC (permalink / raw)
  To: Jeff Kirsher; +Cc: David S. Miller, netdev@vger.kernel.org, Steve Douthit

Most dsa devices currently expect to get a pointer to a mii_bus from
platform data of device tree information.

The first patch exposes a mii_bus for ixgbe devices.

Currently the ixgbe driver only allows accesses to the probed PHY
address via ioctls. The second patch changes that behavior to allow
access to all addresses.  This should be useful for doing switch peeks &
pokes from userspace for development, test, or if theres no dsa driver
for a particular switch yet.

I've tested the clause 22 portion of this code on a board that has an
Intel C3xxx series SoC connected to a Marvell Peridot switch.  I don't
have any clause 45 devices or other ixgbe devices to test with.

Stephen Douthit (2):
  ixgbe: register a mdiobus
  ixgbe: use mii_bus to handle MII related ioctls

 drivers/net/ethernet/intel/ixgbe/ixgbe.h      |   2 +
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |  35 ++--
 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c  | 192 ++++++++++++++++++
 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h  |   2 +
 4 files changed, 216 insertions(+), 15 deletions(-)

-- 
2.17.2

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-12-01  6:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-29 18:54 [PATCH net-next 0/2] Add mii_bus to ixgbe driver for dsa devs Steve Douthit
2018-11-29 18:54 ` [PATCH net-next 1/2] ixgbe: register a mdiobus Steve Douthit
2018-11-30 13:21   ` Andrew Lunn
2018-11-30 15:22     ` Steve Douthit
2018-11-30 16:34       ` Andrew Lunn
2018-11-30 17:34         ` Steve Douthit
2018-11-30 17:43           ` Florian Fainelli
2018-11-30 18:43             ` Steve Douthit
2018-11-30 19:20           ` Andrew Lunn
2018-11-29 18:54 ` [PATCH net-next 2/2] ixgbe: use mii_bus to handle MII related ioctls Steve Douthit
2018-11-29 19:03 ` [PATCH net-next 0/2] Add mii_bus to ixgbe driver for dsa devs Jeff Kirsher
2018-11-29 22:19   ` Steve Douthit
2018-11-29 22:54     ` Jeff Kirsher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).