mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
5eec1df01e
- add support for rtl8224 2.5Gbps PHY - add support for PHY LEDs on RTL8211F 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
|
|
@@ -909,7 +909,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;
|