]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clocksource/drivers/timer-rtl-otto: Do not interfere with interrupts
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 4 Aug 2025 08:03:27 +0000 (04:03 -0400)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:41:11 +0000 (12:41 +0200)
commitc445bffbf28f721e05d0ce06895045fc62aaff7c
tree2707c21d7f63ed219228ee674e4215a393477faf
parentca90147e55a78441794aef5cb4a8d1cf8d0e209f
clocksource/drivers/timer-rtl-otto: Do not interfere with interrupts

During normal operation the timers are reprogrammed including an
interrupt acknowledgement. This has no effect as the whole timer
is setup from scratch afterwards. Especially in an interrupt this
has already been done by rttm_timer_interrupt().

Change the behaviour as follows:

- Use rttm_disable_timer() during reprogramming
- Keep rttm_stop_timer() for all other use cases.

Downstream has already tested and confirmed a patch. See
https://github.com/openwrt/openwrt/pull/19468
https://forum.openwrt.org/t/support-for-rtl838x-based-managed-switches/57875/3788

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Stephen Howell <howels@allthatwemight.be>
Tested-by: Bjørn Mork <bjorn@mork.no>
Link: https://lore.kernel.org/r/20250804080328.2609287-4-markus.stockhausen@gmx.de
drivers/clocksource/timer-rtl-otto.c