1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/realtek
Harshal Gohel 445af8c038 realtek: rtl930x: Fetch link status for all ports in switch IRQ
Link status needs to be read twice, and a single register value is
enough for determining link status for all the ports

It is not necessary to go through each potential port separately and later
actually identify for which ports the interrupt actually was. The helper
for_each_set_bit() directly iterate through all set bits.

While at it, rename the function to a proper naming scheme.

Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Co-developed-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Sharadanand Karanjkar <sk@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19578
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-08-07 16:01:51 +02:00
..
base-files realtek: add support for TP-Link TL-ST1008F v2.0 2025-06-16 13:30:52 +02:00
dts realtek: use consistent definition in DTS for SFP(+) ports 2025-08-07 13:47:27 +02:00
files/firmware/rtl838x_phy
files-6.12 realtek: rtl930x: Fetch link status for all ports in switch IRQ 2025-08-07 16:01:51 +02:00
image realtek: rtl930x: convert Hasivo S1100W to lzma only. 2025-08-06 15:22:52 +02:00
patches-6.12 realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl839x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl930x realtek: rtl930x: enable SMP 2025-08-04 16:01:49 +02:00
rtl931x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
Makefile realtek: switch to 6.12 as default 2025-06-22 16:38:11 +02:00