]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteba4892dae412c759eb3b008516a6bbaa79dad2c
tree5641a06bbb32799089c97a516742d6c06485e158
parent7492791e1d5c20cc4288eaaedb368773bad23d56
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 a80d433c2eca ("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