• Ioana Ciornei's avatar
    dpaa2-mac: configure the SerDes phy on a protocol change · f978fe85
    Ioana Ciornei authored
    This patch integrates the dpaa2-eth driver with the generic PHY
    infrastructure in order to search, find and reconfigure the SerDes lanes
    in case of a protocol change.
    
    On the .mac_config() callback, the phy_set_mode_ext() API is called so
    that the Lynx 28G SerDes PHY driver can change the lane's configuration.
    In the same phylink callback the MC firmware is called so that it
    reconfigures the MAC side to run using the new protocol.
    
    The consumer drivers - dpaa2-eth and dpaa2-switch - are updated to call
    the dpaa2_mac_start/stop functions newly added which will
    power_on/power_off the associated SerDes lane.
    Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f978fe85
dpaa2-eth.c 126 KB