[PATCH v5 2/9] net: phy: fixed: support speeds of 2500 and 10000
Vladimir Oltean
olteanv at gmail.com
Tue Feb 16 22:19:29 CET 2021
From: Vladimir Oltean <vladimir.oltean at nxp.com>
Unlike the Linux fixed PHY driver, the one in U-Boot does not attempt to
emulate the clause 22 register set of a gigabit copper PHY driver
through the swphy framework. Therefore, the limitation of being unable
to support speeds higher than gigabit in fixed-link does not apply to
the U-Boot fixed PHY driver. This makes the fixed-link U-Boot
implementation more similar to the one from phylink, which can work with
any valid link speed.
Signed-off-by: Vladimir Oltean <vladimir.oltean at nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil at nxp.com>
---
Changes in v5:
None.
Changes in v4:
Patch is new.
drivers/net/phy/fixed.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c
index d117a50719a2..ae6b44bec81c 100644
--- a/drivers/net/phy/fixed.c
+++ b/drivers/net/phy/fixed.c
@@ -25,7 +25,8 @@ static int fixedphy_of_init(struct phy_device *phydev)
return -EINVAL;
val = ofnode_read_u32_default(node, "speed", 0);
- if (val != SPEED_10 && val != SPEED_100 && val != SPEED_1000) {
+ if (val != SPEED_10 && val != SPEED_100 && val != SPEED_1000 &&
+ val != SPEED_2500 && val != SPEED_10000) {
printf("ERROR: no/invalid speed given in fixed-link node!");
return -EINVAL;
}
--
2.25.1
More information about the U-Boot
mailing list