diff options
author | Genevieve Chan <genevieve.chan@starfivetech.com> | 2023-02-02 07:56:46 +0300 |
---|---|---|
committer | Ley Foon Tan <leyfoon.tan@starfivetech.com> | 2023-12-04 06:00:14 +0300 |
commit | 5db43fd0473f7c38b93d70bb346eedbea4ad01b6 (patch) | |
tree | 757e7e2d917469d51d9c9dd95c4fa45e6b24923c | |
parent | 34b68de8432e86b26f0295c145935c3c12e0ab02 (diff) | |
download | linux-5db43fd0473f7c38b93d70bb346eedbea4ad01b6.tar.xz |
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 <genevieve.chan@starfivetech.com>
-rw-r--r-- | drivers/net/phy/phylink.c | 8 |
1 files 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); |