]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: fix MAC_FORCE_MODE_CTRL register for RTL931x 18864/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 21 May 2025 06:17:13 +0000 (02:17 -0400)
committerRobert Marko <robimarko@gmail.com>
Fri, 23 May 2025 11:14:28 +0000 (13:14 +0200)
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@gmx.de>
Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Link: https://github.com/openwrt/openwrt/pull/18864
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h

index 692c1d69a0271912c97d5fe87682c80efcedcdb7..797d671957069eb8e55e9b2b2960014a28a24a96 100644 (file)
@@ -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)