From 5db43fd0473f7c38b93d70bb346eedbea4ad01b6 Mon Sep 17 00:00:00 2001 From: Genevieve Chan Date: Thu, 2 Feb 2023 12:56:46 +0800 Subject: net: phylink: Assign link config in phylink_create() This patch parse the following config to a struct phylink: * speed = 10Mbps * duplex = full * pause = RX on, TX on Signed-off-by: Genevieve Chan --- drivers/net/phy/phylink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index fc58e4afb38d..6805f482ffa4 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -1495,10 +1495,10 @@ struct phylink *phylink_create(struct phylink_config *config, else pl->link_port = PORT_MII; pl->link_config.interface = iface; - pl->link_config.pause = MLO_PAUSE_AN; - pl->link_config.speed = SPEED_UNKNOWN; - pl->link_config.duplex = DUPLEX_UNKNOWN; - pl->link_config.an_enabled = true; + pl->link_config.pause = MLO_PAUSE_TXRX_MASK; + pl->link_config.speed = SPEED_10; + pl->link_config.duplex = DUPLEX_FULL; + pl->link_config.an_enabled = false; pl->mac_ops = mac_ops; __set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state); timer_setup(&pl->link_poll, phylink_fixed_poll, 0); -- cgit v1.2.3