net: phylink: propagate resolved link config via mac_link_up()
Propagate the resolved link parameters via the mac_link_up() call for MACs that do not automatically track their PCS state. We propagate the link parameters via function arguments so that inappropriate members of struct phylink_link_state can't be accessed, and creating a new structure just for this adds needless complexity to the API. Tested-by:Andre Przywara <andre.przywara@arm.com> Tested-by:
Alexandre Belloni <alexandre.belloni@bootlin.com> Tested-by:
Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by:
Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/sfp-phylink.rst 14 additions, 3 deletionsDocumentation/networking/sfp-phylink.rst
- drivers/net/ethernet/cadence/macb_main.c 5 additions, 2 deletionsdrivers/net/ethernet/cadence/macb_main.c
- drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c 5 additions, 2 deletionsdrivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
- drivers/net/ethernet/marvell/mvneta.c 5 additions, 3 deletionsdrivers/net/ethernet/marvell/mvneta.c
- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 13 additions, 6 deletionsdrivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
- drivers/net/ethernet/mediatek/mtk_eth_soc.c 4 additions, 3 deletionsdrivers/net/ethernet/mediatek/mtk_eth_soc.c
- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 3 additions, 1 deletiondrivers/net/ethernet/stmicro/stmmac/stmmac_main.c
- drivers/net/ethernet/xilinx/xilinx_axienet_main.c 4 additions, 3 deletionsdrivers/net/ethernet/xilinx/xilinx_axienet_main.c
- drivers/net/phy/phylink.c 7 additions, 2 deletionsdrivers/net/phy/phylink.c
- include/linux/phylink.h 42 additions, 15 deletionsinclude/linux/phylink.h
- net/dsa/port.c 3 additions, 1 deletionnet/dsa/port.c
Loading
Please register or sign in to comment