[openwrt/openwrt] realtek: rtl931x: Update irq mask to cover all ports

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 31 12:59:34 PDT 2025


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

commit b61fda10358ff79be707ccc0eb2e6f0e2d2b7e9d
Author: Harshal Gohel <hg at simonwunderlich.de>
AuthorDate: Mon Jul 14 10:56:33 2025 +0200

    realtek: rtl931x: Update irq mask to cover all ports
    
    The RTL931x has 56 (0-55) non-CPU ports. To receive updates about the port
    state, it is therefore necessary to enable the interrupts for all these
    ports.
    
    Signed-off-by: Harshal Gohel <hg at simonwunderlich.de>
    Signed-off-by: Sharadanand Karanjkar <sk at simonwunderlich.de>
    Link: https://github.com/openwrt/openwrt/pull/19572
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
index 5c15824d00..d02f958501 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
@@ -1599,7 +1599,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
 		priv->cpu_port = RTL931X_CPU_PORT;
 		priv->port_mask = 0x3f;
 		priv->port_width = 2;
-		priv->irq_mask = 0xFFFFFFFFFFFFFULL;
+		priv->irq_mask = GENMASK_ULL(priv->cpu_port - 1, 0);
 		priv->r = &rtl931x_reg;
 		priv->ds->num_ports = 57;
 		priv->fib_entries = 16384;




More information about the lede-commits mailing list