]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl931x: Update irq mask to cover all ports
authorHarshal Gohel <hg@simonwunderlich.de>
Mon, 14 Jul 2025 08:56:33 +0000 (10:56 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 31 Jul 2025 19:59:23 +0000 (21:59 +0200)
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@simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19572
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c

index 5c15824d00c5123023d9b885b90a0c62b76292d9..d02f958501c46befb90c1a68ad059bf4489e9175 100644 (file)
@@ -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;