enetc: Migrate to PHYLINK and PCS_LYNX
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Wed, 7 Oct 2020 09:48:23 +0000 (12:48 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 11 Oct 2020 18:04:42 +0000 (11:04 -0700)
commit71b77a7a27a3388c97e754a2c4e282df3f568fd7
tree5641a06bbb32799089c97a516742d6c06485e158
parent9fce74bf2245c795397e6b8f8ed077b24abdd6ac
enetc: Migrate to PHYLINK and PCS_LYNX

This is a methodical transition of the driver from phylib
to phylink, following the guidelines from sfp-phylink.rst.
The MAC register configurations based on interface mode
were moved from the probing path to the mac_config() hook.
MAC enable and disable commands (enabling Rx and Tx paths
at MAC level) were also extracted and assigned to their
corresponding phylink hooks.
As part of the migration to phylink, the serdes configuration
from the driver was offloaded to the PCS_LYNX module,
introduced in commit 0da4c3d393e4 ("net: phy: add Lynx PCS module"),
the PCS_LYNX module being a mandatory component required to
make the enetc driver work with phylink.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.cionei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/Kconfig
drivers/net/ethernet/freescale/enetc/enetc.c
drivers/net/ethernet/freescale/enetc/enetc.h
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_pf.h
drivers/net/ethernet/freescale/enetc/enetc_qos.c