[openwrt/openwrt] realtek: dsa: increase RTL839x max phy page to 8191
LEDE Commits
lede-commits at lists.infradead.org
Sun Oct 27 14:26:32 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/8e4597297d95ac6948ee04c48f6c30f6d2022595
commit 8e4597297d95ac6948ee04c48f6c30f6d2022595
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Sun Sep 22 12:03:43 2024 -0400
realtek: dsa: increase RTL839x max phy page to 8191
According to the specs the RTL839x provides up to 8192 phy pages.
Especially the "raw" page 8191 is used for different initialization
tasks. Increase the limit.
Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
Link: https://github.com/openwrt/openwrt/pull/16457
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl839x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl839x.c b/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl839x.c
index 5889cea6d6..ecf291f866 100644
--- a/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl839x.c
+++ b/target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/rtl839x.c
@@ -662,7 +662,7 @@ int rtl839x_read_phy(u32 port, u32 page, u32 reg, u32 *val)
u32 v;
int err = 0;
- if (port > 63 || page > 4095 || reg > 31)
+ if (port > 63 || page > 8191 || reg > 31)
return -ENOTSUPP;
/* Take bug on RTL839x Rev <= C into account */
@@ -698,7 +698,7 @@ int rtl839x_write_phy(u32 port, u32 page, u32 reg, u32 val)
int err = 0;
val &= 0xffff;
- if (port > 63 || page > 4095 || reg > 31)
+ if (port > 63 || page > 8191 || reg > 31)
return -ENOTSUPP;
/* Take bug on RTL839x Rev <= C into account */
More information about the lede-commits
mailing list