The theme of this set is to clear the dependency on bootloader for PHY link mode protocol init (i.e. SGMII, SXGMII) and MAC configuration for the ENETC controller.
First patch fixes the DT extracted PHY mode handling. The second one is a refactoring that prepares the introduction of the internal MDIO bus. Internal MDIO bus support is added along with SerDes protocol configuration routines (3rd patch). Then after a minor cleanup (patch 4), DT link mode information is being used to configure the MAC instead of relying on bootloader configurations. Alex Marginean (1): enetc: Use DT protocol information to set up the ports Claudiu Manoil (4): enetc: Fix if_mode extraction enetc: Make mdio accessors more generic enetc: Initialize SerDes for SGMII and SXGMII protocols enetc: Drop redundant device node check .../net/ethernet/freescale/enetc/enetc_hw.h | 18 +++ .../net/ethernet/freescale/enetc/enetc_mdio.c | 91 +++++++++---- .../net/ethernet/freescale/enetc/enetc_mdio.h | 2 +- .../ethernet/freescale/enetc/enetc_pci_mdio.c | 2 + .../net/ethernet/freescale/enetc/enetc_pf.c | 127 +++++++++++++----- .../net/ethernet/freescale/enetc/enetc_pf.h | 5 + 6 files changed, 182 insertions(+), 63 deletions(-) -- 2.17.1