]> git.baikalelectronics.ru Git - kernel.git/commit
enetc: Clean up MAC and link configuration
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Wed, 7 Oct 2020 09:48:20 +0000 (12:48 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 11 Oct 2020 18:04:42 +0000 (11:04 -0700)
commitf55835f9b4d4fb68caf89c993564703564e6cbf1
treed5fa130f2a8709cc53f5419bfa3f663386c8c542
parente0e536264415a91d889a3a0e736355f08372da5a
enetc: Clean up MAC and link configuration

Decouple level MAC configuration based on phy interface type
from general port configuration.
Group together MAC and link configuration code.
Decouple external mdio bus creation from interface type
parsing.  No longer return an (unhandled) error code when
phy_node not found, use phy_node to indicate whether the
port has a phy or not.  No longer fall-through when serdes
configuration fails for the link modes that require
internal link configuration.

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