[openwrt/openwrt] realtek: fix MAC_FORCE_MODE_CTRL register for RTL931x

LEDE Commits lede-commits at lists.infradead.org
Fri May 23 04:14:32 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a526f80af875dca18b693cf5e6b1fae5fda2fa97

commit a526f80af875dca18b693cf5e6b1fae5fda2fa97
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Wed May 21 02:17:13 2025 -0400

    realtek: fix MAC_FORCE_MODE_CTRL register for RTL931x
    
    Ports will not work as expected on the RTL931x devices. This comes
    from a typo in the address. Fixed according to the documentation:
    https://svanheule.net/realtek/mango/register/mac_force_mode_ctrl
    
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
    Signed-off-by: Sebastian Gottschall <s.gottschall at dd-wrt.com>
    Link: https://github.com/openwrt/openwrt/pull/18864
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h b/target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h
index 692c1d69a0..797d671957 100644
--- a/target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h
+++ b/target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h
@@ -46,7 +46,7 @@
 #define RTL838X_MAC_FORCE_MODE_CTRL		(0xa104)
 #define RTL839X_MAC_FORCE_MODE_CTRL		(0x02bc)
 #define RTL930X_MAC_FORCE_MODE_CTRL		(0xCA1C)
-#define RTL931X_MAC_FORCE_MODE_CTRL		(0x0ddc)
+#define RTL931X_MAC_FORCE_MODE_CTRL		(0x0dcc)
 
 #define RTL83XX_DMA_IF_INTR_STS_NOTIFY_MASK	GENMASK(22, 20)
 #define RTL83XX_DMA_IF_INTR_STS_RX_DONE_MASK	GENMASK(15, 8)




More information about the lede-commits mailing list