All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] net: phy: Support managed Cortina phys
@ 2017-05-26  7:58 ` Bogdan Purcareata
  0 siblings, 0 replies; 10+ messages in thread
From: Bogdan Purcareata @ 2017-05-26  7:58 UTC (permalink / raw)
  To: andrew-g2DYL2Zd6BY, f.fainelli-Re5JQEeQqe8AvxtiuMwx3w,
	netdev-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

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

v2 -> v3:
- Add documentation entry.

v1 -> v2:
- Change approach for getting the phy_id from hacking get_phy_c45_ids to
  describing the device in the device tree via ethernet-phy-id.

More patch version changes per individual patches.

Bogdan Purcareata (2):
  net: phy: Add Cortina CS4340 driver
  dt-bindings: net: Add Cortina device tree bindings

 Documentation/devicetree/bindings/net/cortina.txt |  19 ++++
 drivers/net/phy/Kconfig                           |   5 +
 drivers/net/phy/Makefile                          |   1 +
 drivers/net/phy/cortina.c                         | 115 ++++++++++++++++++++++
 4 files changed, 140 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/cortina.txt
 create mode 100644 drivers/net/phy/cortina.c

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2017-05-26 13:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-26  7:58 [PATCH v3 0/2] net: phy: Support managed Cortina phys Bogdan Purcareata
2017-05-26  7:58 ` Bogdan Purcareata
2017-05-26  7:58 ` Bogdan Purcareata
2017-05-26  7:58 ` [PATCH v3 1/2] net: phy: Add Cortina CS4340 driver Bogdan Purcareata
2017-05-26  7:58   ` Bogdan Purcareata
2017-05-26  7:58 ` [PATCH v3 2/2] dt-bindings: net: Add Cortina device tree bindings Bogdan Purcareata
2017-05-26  7:58   ` Bogdan Purcareata
     [not found]   ` <1495785519-1468-3-git-send-email-bogdan.purcareata-3arQi8VN3Tc@public.gmane.org>
2017-05-26 13:35     ` Andrew Lunn
2017-05-26 13:35       ` Andrew Lunn
2017-05-26 13:41       ` Bogdan Purcareata

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.