]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: introduce global interrupt helpers 21893/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 6 Feb 2026 07:43:47 +0000 (08:43 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 13 Feb 2026 22:28:54 +0000 (23:28 +0100)
commit7f67ec0b34a93e2c47be3c653d82e67a0f336180
treedec9cbfd23b5ef5db032b295ad20fd66c53286c4
parentf617d3e594e366d9f3598228c22afb23c8af3497
realtek: eth: introduce global interrupt helpers

Global interrupt enabling/disabling is scattered around the code. Provide
two helpers to handle this code centrally. Make use of them where needed.
This refactoring brings multiple enhancements:

1. Only activate the rx interrupts and ignore the run out (aka rx overflow)
interrupts. Overflow was used to spit out log messages to identify driver
issues. Nowadays it is stable enough and these messages are not needed
any longer.

2. With generic register setting some family checks can be dropped.

3. Last but not least this commit fixes a bug in the probing of the ethernet
driver. In rare case (especially during TFTP boot) U-Boot loader leaves a
pending rx interrupt that instantly fires when the driver registers its
interrupt via devm_request_irq(). To mitigate this, reorder the interrupt
disabling from ndo_open() to driver probing.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21893
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c