]> 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)
commiteb5fa0daf770e2073ccb979a675c95d1a3798352
treed5fa130f2a8709cc53f5419bfa3f663386c8c542
parent4b7fcb9e4472f1b333f7d9a68d205fc506037e96
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