• Pankaj Bansal's avatar
    driver: net: fsl-mc: Add support of multiple phys for dpmac · 1a048cd6
    Pankaj Bansal authored
    
    
    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.
    
    Signed-off-by: default avatarPankaj Bansal <pankaj.bansal@nxp.com>
    Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
    1a048cd6