diff options
author | Bjørn Mork <bjorn@mork.no> | 2021-03-13 17:45:54 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-04-18 12:06:45 +0200 |
commit | 37920d6ee16267c216e890f9d9487ef1ef1eff17 (patch) | |
tree | a37e00f0a9315b02c3e0cfc557a272a79f97690a /target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c | |
parent | 037dc6b251248dc459a41d8602fa027e2bff5d23 (diff) | |
download | upstream-37920d6ee16267c216e890f9d9487ef1ef1eff17.tar.gz upstream-37920d6ee16267c216e890f9d9487ef1ef1eff17.tar.bz2 upstream-37920d6ee16267c216e890f9d9487ef1ef1eff17.zip |
realtek: enable SerDes NWAY and SGMII negotiation
This allows copper SFPs to negotiate speeds lower than 1gig.
Acked-by: Birger Koblitz <mail@birger-koblitz.de>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
(cherry picked from commit 963b2ae702510c11e912c9438fdb9222763a22d5)
Diffstat (limited to 'target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c')
-rw-r--r-- | target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c b/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c index 197a96f8ad..6940afa7f2 100644 --- a/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c +++ b/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c @@ -368,8 +368,8 @@ static int __init rtl83xx_mdio_probe(struct rtl838x_switch_priv *priv) /* Enable PHY control via SoC */ if (priv->family_id == RTL8380_FAMILY_ID) { - /* Enable PHY control via SoC */ - sw_w32_mask(0, BIT(15), RTL838X_SMI_GLB_CTRL); + /* Enable SerDes NWAY and PHY control via SoC */ + sw_w32_mask(BIT(7), BIT(15), RTL838X_SMI_GLB_CTRL); } else { /* Disable PHY polling via SoC */ sw_w32_mask(BIT(7), 0, RTL839X_SMI_GLB_CTRL); |