mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 01:59:02 +00:00
ae5489e578
- Fix setting of PHY LEDs Mode B bit on RTL8211F. - Rename pending Realtek PHY patches. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
27 lines
933 B
Diff
27 lines
933 B
Diff
From 92c8b9d558160d94b981dd8a2b9c47657627ffdc Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Sat, 22 Apr 2023 01:23:08 +0100
|
|
Subject: [PATCH 2/3] net: phy: realtek: use inline functions for 10GbE
|
|
advertisement
|
|
|
|
Use existing generic inline functions to encode local advertisement
|
|
of 10GbE link modes as well as to decode link-partner advertisement.
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
---
|
|
drivers/net/phy/realtek.c | 22 +++++-----------------
|
|
1 file changed, 5 insertions(+), 17 deletions(-)
|
|
|
|
--- a/drivers/net/phy/realtek.c
|
|
+++ b/drivers/net/phy/realtek.c
|
|
@@ -910,7 +910,8 @@ static int rtl822x_config_aneg(struct ph
|
|
|
|
ret = phy_modify_paged_changed(phydev, 0xa5d, 0x12,
|
|
MDIO_AN_10GBT_CTRL_ADV2_5G |
|
|
- MDIO_AN_10GBT_CTRL_ADV5G,
|
|
+ MDIO_AN_10GBT_CTRL_ADV5G |
|
|
+ MDIO_AN_10GBT_CTRL_ADV10G,
|
|
adv);
|
|
if (ret < 0)
|
|
return ret;
|