[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181129185345.17235-1-stephend@silicom-usa.com>
Date: Thu, 29 Nov 2018 18:54:07 +0000
From: Steve Douthit <stephend@...icom-usa.com>
To: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
CC: "David S. Miller" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Steve Douthit <stephend@...icom-usa.com>
Subject: [PATCH net-next 0/2] Add mii_bus to ixgbe driver for dsa devs
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
Powered by blists - more mailing lists