summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGenevieve Chan <genevieve.chan@starfivetech.com>2023-05-09 04:45:10 +0300
committerLey Foon Tan <leyfoon.tan@starfivetech.com>2024-01-08 10:49:11 +0300
commit94600cc4c85039e9b85679168072c7611ae99e2d (patch)
treee407a4cd6ea536ae9d124d4460abcdd22b3395d7
parentb435e33da5b285f5b38a33bacacf4397dff769fe (diff)
downloadlinux-94600cc4c85039e9b85679168072c7611ae99e2d.tar.xz
Revert "net: phylink: Assign link config in phylink_create()"
This reverts commit 17cf2e9936bdd49f798bb609478da2cf3e26aebc. Signed-off-by: Genevieve Chan <genevieve.chan@starfivetech.com>
-rw-r--r--drivers/net/phy/phylink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 3c7cea47764e..b5f012619e42 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -1647,9 +1647,9 @@ 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_TXRX_MASK;
- pl->link_config.speed = SPEED_10;
- pl->link_config.duplex = DUPLEX_FULL;
+ pl->link_config.pause = MLO_PAUSE_AN;
+ pl->link_config.speed = SPEED_UNKNOWN;
+ pl->link_config.duplex = DUPLEX_UNKNOWN;
pl->pcs_state = PCS_STATE_DOWN;
pl->mac_ops = mac_ops;
__set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state);