[U-Boot] [PATCH v3 0/6] driver: net: fsl-mc: Add support of multiple phys for dpmac

Pankaj Bansal pankaj.bansal at nxp.com
Wed Oct 10 08:27:57 UTC 2018


This patch set adds support of multiple phys for one dpmac

Till now we have had cases where we had one phy device per dpmac.
Now, with the upcoming products (LX2160AQDS), we have cases, where there
are sometimes two phy devices for one dpmac. One phy for TX lanes and one
phy for RX lanes. To handle such cases, add the support for multiple phys
in ethernet driver. The ethernet link is up if all the phy devices
connected to one dpmac report link up. also the link capabilities are
limited by the weakest phy device.

i.e. say if there are two phys for one dpmac. one operates at 10G without
autoneg and other operate at 1G with autoneg. Then the ethernet interface
will operate at 1G without autoneg.

Cc: Varun Sethi <V.Sethi at nxp.com>

Pankaj Bansal (6):
  driver: net: fsl-mc: modify the label name
  driver: net: fsl-mc: remove unused strcture elements
  driver: net: fsl-mc: fix error handing in init_phy
  driver: net: fsl-mc: Modify the dpmac link detection method
  driver: net: fsl-mc: initialize dpmac irrespective of phy
  driver: net: fsl-mc: Add support of multiple phys for dpmac

 board/freescale/ls1088a/eth_ls1088aqds.c   |  18 +--
 board/freescale/ls1088a/eth_ls1088ardb.c   |  21 +--
 board/freescale/ls2080aqds/eth.c           |  26 ++--
 board/freescale/ls2080ardb/eth_ls2080rdb.c |  24 +--
 drivers/net/fsl-mc/mc.c                    |   6 +-
 drivers/net/ldpaa_eth/ldpaa_eth.c          | 171 +++++++++++++--------
 drivers/net/ldpaa_eth/ldpaa_eth.h          |   1 -
 drivers/net/ldpaa_eth/ldpaa_wriop.c        |  71 ++++++---
 include/fsl-mc/ldpaa_wriop.h               |  46 +++---
 9 files changed, 223 insertions(+), 161 deletions(-)

-- 
2.17.1



More information about the U-Boot mailing list