All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY
@ 2019-11-14 15:04 Alex Marginean
  2019-11-14 15:04 ` [U-Boot] [PATCH v4 1/5] net: mdio-uclass: rename arguments of dm_mdio_phy_connect for clarity Alex Marginean
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Alex Marginean @ 2019-11-14 15:04 UTC (permalink / raw)
  To: u-boot

The patch set introduces dm_eth_phy_connect which takes in an ethernet device
and uses DT information to find the associated PHY and connect the Ethernet
interface to it.  This should simplify similar code in ethernet drivers.
A new binding is introduced for scanning an MDIO bus, useful if the bus is
private to the Ethernet interface.  We're going to try to get this binding
accepted in Linux too.
Finally the patch set updates fsl_enetc driver to use the new helper function.


This patch set supersedes v2 series:
https://patchwork.ozlabs.org/project/uboot/list/?series=124537
and v3 series:
https://patchwork.ozlabs.org/project/uboot/list/?series=140114

Changes in v4:
 - rebased on current head

Changes in v3:
 - added cover letter
 - check for null PHY pointer before using it in dm_eth_connect_phy_handle
 - moved the code dealing with MDIO scanning into a separate patch
 - renames several arguments and variables for a bit more clarity and
   consistency

Changes in v2:
- Moved MDIO scan code into dm_mdio_phy_scan which is also exported
- Use interface instead of if_type for consistency
- don't use phy pointer if NULL in fsl_enetc code

Alex Marginean (5):
  net: mdio-uclass: rename arguments of dm_mdio_phy_connect for
    consistency
  net: mdio-uclass: add dm_eth_phy_connect helper function
  net: mdio-uclass: Add helper functions for scanning the MDIO bus
  doc: bindings: add mdio-handle property to ethernet nodes
  drivers: net: fsl_enetc: use the new MDIO DM helper functions

 doc/device-tree-bindings/net/ethernet.txt |   2 +
 drivers/net/fsl_enetc.c                   |  52 ++------
 drivers/net/fsl_enetc.h                   |   1 +
 include/miiphy.h                          |  32 ++++-
 net/mdio-uclass.c                         | 139 +++++++++++++++++++++-
 5 files changed, 175 insertions(+), 51 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2019-11-24  0:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-14 15:04 [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY Alex Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 1/5] net: mdio-uclass: rename arguments of dm_mdio_phy_connect for clarity Alex Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 2/5] net: mdio-uclass: add dm_eth_phy_connect helper function Alex Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 3/5] net: mdio-uclass: Add helper functions for scanning the MDIO bus Alex Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 4/5] doc: bindings: add mdio-handle property to ethernet nodes Alex Marginean
2019-11-18 19:11   ` Grygorii Strashko
2019-11-18 23:31     ` Alexandru Marginean
2019-11-19 18:58       ` Grygorii Strashko
2019-11-20  9:51         ` Grygorii Strashko
2019-11-21 10:36           ` Alexandru Marginean
2019-11-21 12:30             ` Grygorii Strashko
2019-11-22  9:49               ` Alexandru Marginean
2019-11-14 15:04 ` [U-Boot] [PATCH v4 5/5] drivers: net: fsl_enetc: use the new MDIO DM helper functions Alex Marginean
2019-11-14 17:41 ` [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY Michael Walle
2019-11-14 18:19   ` Alexandru Marginean
2019-11-14 19:10     ` Alexandru Marginean
2019-11-24  0:02 ` Michael Walle

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.