linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] net/phy: Improvements to Cavium Thunder MDIO code.
@ 2016-03-11 16:46 David Daney
  2016-03-11 16:47 ` [PATCH 1/3] net: thunderx: Cleanup PHY probing code David Daney
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: David Daney @ 2016-03-11 16:46 UTC (permalink / raw)
  To: David S. Miller, netdev, linux-arm-kernel, Florian Fainelli,
	Robert Richter, Sunil Goutham, Kumar Gala, Ian Campbell,
	Mark Rutland, Pawel Moll, Rob Herring
  Cc: linux-kernel, Radha Mohan Chintakuntla, David Daney

From: David Daney <david.daney@cavium.com>

The firmware on many Cavium Thunder systems configures the MDIO bus
hardware to be probed as a PCI device.  In order to use the MDIO bus
drivers in this configuration, we must add PCI probing to the driver.

There are two parts to this set of three patches:

 1) Cleanup the PHY probing code in thunder_bgx.c to handle the case
    where there is no PHY attached to a port, as well as being more
    robust in the face of driver loading order by use of
    -EPROBE_DEFER.

 2) Split mdio-octeon.c into two drivers, one with platform probing,
 and the other with PCI probing.  Common code is shared between the
 two.

Tested on several different Thunder and OCTEON systems, also compile
tested on x86_64.

David Daney (3):
  net: thunderx: Cleanup PHY probing code.
  phy: mdio-octeon: Refactor into two files/modules
  phy: mdio-thunder:  Add driver for Cavium Thunder SoC MDIO buses.

 .../devicetree/bindings/net/cavium-mdio.txt        |  61 ++++-
 drivers/net/ethernet/cavium/thunder/thunder_bgx.c  |  31 +--
 drivers/net/phy/Kconfig                            |  22 +-
 drivers/net/phy/Makefile                           |   2 +
 drivers/net/phy/mdio-cavium.c                      | 149 +++++++++++
 drivers/net/phy/mdio-cavium.h                      | 119 +++++++++
 drivers/net/phy/mdio-octeon.c                      | 280 ++-------------------
 drivers/net/phy/mdio-thunder.c                     | 154 ++++++++++++
 8 files changed, 533 insertions(+), 285 deletions(-)
 create mode 100644 drivers/net/phy/mdio-cavium.c
 create mode 100644 drivers/net/phy/mdio-cavium.h
 create mode 100644 drivers/net/phy/mdio-thunder.c

-- 
1.7.11.7

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

end of thread, other threads:[~2016-03-11 21:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-11 16:46 [PATCH 0/3] net/phy: Improvements to Cavium Thunder MDIO code David Daney
2016-03-11 16:47 ` [PATCH 1/3] net: thunderx: Cleanup PHY probing code David Daney
2016-03-11 17:31   ` Andrew Lunn
2016-03-11 17:41     ` David Daney
2016-03-11 18:00       ` Andrew Lunn
2016-03-11 18:26         ` David Daney
2016-03-11 19:06           ` Andrew Lunn
2016-03-11 19:34             ` David Daney
2016-03-11 19:37             ` Florian Fainelli
2016-03-11 20:56               ` David Daney
2016-03-11 21:35                 ` Andrew Lunn
2016-03-11 21:57                   ` David Daney
2016-03-11 16:47 ` [PATCH 2/3] phy: mdio-octeon: Refactor into two files/modules David Daney
2016-03-11 16:47 ` [PATCH 3/3] phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses David Daney

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).