]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl931x: Add smi_poll_ctrl
authorHarshal Gohel <hg@simonwunderlich.de>
Mon, 7 Jul 2025 17:18:17 +0000 (17:18 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 7 Aug 2025 16:40:30 +0000 (18:40 +0200)
The comment incorrectly stated that RTL931X doesn't have smi_poll_ctrl. But
there is actually a register for using it.

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19574
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c

index 000e41400019b701687bbde8a703cd00c66e17ac..05bf68a7447c745850607fea5070f36fed5f3305 100644 (file)
@@ -1639,7 +1639,7 @@ const struct rtl838x_reg rtl931x_reg = {
        .l2_ctrl_1 = RTL931X_L2_AGE_CTRL,
        .l2_port_aging_out = RTL931X_L2_PORT_AGE_CTRL,
        .set_ageing_time = rtl931x_set_ageing_time,
-       /* .smi_poll_ctrl does not exist */
+       .smi_poll_ctrl = RTL931X_SMI_PORT_POLLING_CTRL,
        .l2_tbl_flush_ctrl = RTL931X_L2_TBL_FLUSH_CTRL,
        .exec_tbl0_cmd = rtl931x_exec_tbl0_cmd,
        .exec_tbl1_cmd = rtl931x_exec_tbl1_cmd,