netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] net: phy: Support managed Cortina phys
@ 2017-05-23 15:53 Bogdan Purcareata
  2017-05-23 15:53 ` [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs Bogdan Purcareata
  2017-05-23 15:53 ` [PATCH 2/2] drivers: phy: Add Cortina CS4340 driver Bogdan Purcareata
  0 siblings, 2 replies; 10+ messages in thread
From: Bogdan Purcareata @ 2017-05-23 15:53 UTC (permalink / raw)
  To: andrew, f.fainelli, netdev, linux-kernel

So far, the Cortina family phys (CS4340 in this particular case) are only
supported in fixed link mode (via fixed_phy_register). The generic 10G
phy driver does not work well with the phylib state machine, when the phy
is registered via of_phy_connect. This prohibits the user from describing the
phy nodes in the device tree.

In order to support this scenario, and to properly describe the board
device tree, add a minimal Cortina driver that reads the status from the
right register. With the generic 10G C45 driver, the kernel will print
messages like:
[    0.226521] mdio_bus 8b96000: Error while reading PHY16 reg at 1.6
[    0.232780] mdio_bus 8b96000: Error while reading PHY16 reg at 1.5

Bogdan Purcareata (2):
  net: phy: Update get_phy_c45_ids for Cortina PHYs
  drivers: phy: Add Cortina CS4340 driver

 drivers/net/phy/Kconfig        |  5 +++
 drivers/net/phy/Makefile       |  1 +
 drivers/net/phy/mdio-cortina.c | 90 ++++++++++++++++++++++++++++++++++++++++++
 drivers/net/phy/phy_device.c   | 10 +++--
 4 files changed, 102 insertions(+), 4 deletions(-)
 create mode 100644 drivers/net/phy/mdio-cortina.c

-- 
1.9.1

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

end of thread, other threads:[~2017-05-24  6:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-23 15:53 [PATCH 0/2] net: phy: Support managed Cortina phys Bogdan Purcareata
2017-05-23 15:53 ` [PATCH 1/2] net: phy: Update get_phy_c45_ids for Cortina PHYs Bogdan Purcareata
2017-05-23 16:03   ` Andrew Lunn
2017-05-23 16:32     ` Bogdan Purcareata
2017-05-23 16:55       ` Andrew Lunn
2017-05-23 18:12         ` Florian Fainelli
2017-05-24  6:05           ` Bogdan Purcareata
2017-05-23 15:53 ` [PATCH 2/2] drivers: phy: Add Cortina CS4340 driver Bogdan Purcareata
2017-05-23 15:57   ` Andrew Lunn
2017-05-23 16:32     ` Bogdan Purcareata

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