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>2023-12-04 06:00:15 +0300
commit424808151db2a181d490b86e6d6185a1616efc49 (patch)
treeadf28b991da953acf36dc1a5d6a158b801041e47
parenta7980db68cc60bdc7db71c0bdc38d38d782a014c (diff)
downloadlinux-424808151db2a181d490b86e6d6185a1616efc49.tar.xz
Revert "net: phylink: Assign link config in phylink_create()"
This reverts commit dbe28bc438226acf5b9523bf0a156433470e417d. Signed-off-by: Genevieve Chan <genevieve.chan@starfivetech.com>
-rw-r--r--drivers/net/phy/phylink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 6805f482ffa4..fc58e4afb38d 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_TXRX_MASK;
- pl->link_config.speed = SPEED_10;
- pl->link_config.duplex = DUPLEX_FULL;
- pl->link_config.an_enabled = false;
+ 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->mac_ops = mac_ops;
__set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state);
timer_setup(&pl->link_poll, phylink_fixed_poll, 0);