linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH v3 0/5] Introduce new fwnode based APIs to support phylink and phy layers
@ 2020-05-05 13:29 Calvin Johnson
  2020-05-05 13:29 ` [net-next PATCH v3 1/5] net: phy: Introduce phy related fwnode functions Calvin Johnson
                   ` (4 more replies)
  0 siblings, 5 replies; 38+ messages in thread
From: Calvin Johnson @ 2020-05-05 13:29 UTC (permalink / raw)
  To: Rafael J . Wysocki, Russell King - ARM Linux admin, linux.cj,
	Jeremy Linton, Andrew Lunn, Andy Shevchenko, Florian Fainelli,
	Cristi Sovaiala, Florin Laurentiu Chiculita, Ioana Ciornei,
	Madalin Bucur, Greg Kroah-Hartman, Heikki Krogerus
  Cc: Varun Sethi, Rajesh V . Bikkina, linux-acpi, linux-kernel,
	Diana Madalina Craciun, netdev, Marcin Wojtas, Laurentiu Tudor,
	Makarand Pawagi, linux-arm-kernel, Pankaj Bansal, Calvin Johnson,
	David S. Miller, Heiner Kallweit

Following functions are defined:
  phylink_fwnode_phy_connect()
  fwnode_phy_find_device()
  device_phy_find_device()
  fwnode_get_phy_node()
  fwnode_mdiobus_register_phy()
  fwnode_get_phy_id()

First one helps in connecting phy to phylink instance.
Next two help in finding a phy on a mdiobus.
Next one helps in getting phy_node from a fwnode.
Last two help in getting phy_id and registering phy to mdiobus

Changes in v3:
  move fwnode APIs to appropriate place
  stubs fwnode APIs for !CONFIG_PHYLIB
  improve comment on function return condition.
  remove NULL return check as it is invalid
  remove unused phylink_device_phy_connect()
  Introduce two functions to register phy to mdiobus using fwnode

Changes in v2:
  move phy code from base/property.c to net/phy/phy_device.c
  replace acpi & of code to get phy-handle with fwnode_find_reference
  replace of_ and acpi_ code with generic fwnode to get phy-handle.

Calvin Johnson (5):
  net: phy: Introduce phy related fwnode functions
  net: phy: alphabetically sort header includes
  phylink: Introduce phylink_fwnode_phy_connect()
  net: phy: Introduce fwnode_get_phy_id()
  net: mdiobus: Introduce fwnode_mdiobus_register_phy()

 drivers/net/phy/mdio_bus.c   |  41 ++++++++++++++
 drivers/net/phy/phy_device.c | 102 ++++++++++++++++++++++++++++++-----
 drivers/net/phy/phylink.c    |  48 +++++++++++++++++
 include/linux/mdio.h         |   2 +
 include/linux/phy.h          |  24 +++++++++
 include/linux/phylink.h      |   3 ++
 6 files changed, 206 insertions(+), 14 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2020-05-11 15:00 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 13:29 [net-next PATCH v3 0/5] Introduce new fwnode based APIs to support phylink and phy layers Calvin Johnson
2020-05-05 13:29 ` [net-next PATCH v3 1/5] net: phy: Introduce phy related fwnode functions Calvin Johnson
2020-05-05 14:44   ` Russell King - ARM Linux admin
2020-05-05 23:21   ` kbuild test robot
2020-05-05 23:39   ` Russell King - ARM Linux admin
2020-05-06  0:07   ` kbuild test robot
2020-05-05 13:29 ` [net-next PATCH v3 2/5] net: phy: alphabetically sort header includes Calvin Johnson
2020-05-05 13:29 ` [net-next PATCH v3 3/5] phylink: Introduce phylink_fwnode_phy_connect() Calvin Johnson
2020-05-05 14:13   ` Andy Shevchenko
2020-05-05 14:35   ` Russell King - ARM Linux admin
2020-05-05 13:29 ` [net-next PATCH v3 4/5] net: phy: Introduce fwnode_get_phy_id() Calvin Johnson
2020-05-05 14:15   ` Andy Shevchenko
2020-05-05 14:20     ` Russell King - ARM Linux admin
2020-05-07 13:26   ` Jeremy Linton
2020-05-07 17:27     ` Andy Shevchenko
2020-05-07 19:54       ` Jeremy Linton
2020-05-08 16:07         ` Calvin Johnson
2020-05-08 18:13           ` Andrew Lunn
2020-05-08 19:18             ` Jeremy Linton
2020-05-08 20:27               ` Andrew Lunn
2020-05-08 22:48                 ` Jeremy Linton
2020-05-08 23:42                   ` Andrew Lunn
2020-05-09  0:11                     ` Jeremy Linton
2020-05-11  8:00                     ` Calvin Johnson
2020-05-11  9:38                       ` Russell King - ARM Linux admin
2020-05-11 10:29                         ` Calvin Johnson
2020-05-11 10:48                           ` Russell King - ARM Linux admin
2020-05-11 12:02                             ` Calvin Johnson
2020-05-11 13:04                       ` Andrew Lunn
2020-05-11 13:35                         ` Russell King - ARM Linux admin
2020-05-11 14:59                         ` Calvin Johnson
2020-05-11  7:39                   ` Calvin Johnson
2020-05-11  5:52             ` Calvin Johnson
2020-05-11 12:53               ` Andrew Lunn
2020-05-05 13:29 ` [net-next PATCH v3 5/5] net: mdiobus: Introduce fwnode_mdiobus_register_phy() Calvin Johnson
2020-05-05 14:22   ` Andy Shevchenko
2020-05-07  7:44     ` Calvin Johnson
2020-05-07  9:10       ` Andy Shevchenko

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