Skip to content

Commit 4accdb9

Browse files
committed
Merge tag 'timers-core-2023-09-04-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull clocksource/clockevent driver updates from Thomas Gleixner: - Remove the OXNAS driver instead of adding a new one! - A set of boring fixes, cleanups and improvements * tag 'timers-core-2023-09-04-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: clocksource: Explicitly include correct DT includes clocksource/drivers/sun5i: Convert to platform device driver clocksource/drivers/sun5i: Remove pointless struct clocksource/drivers/sun5i: Remove duplication of code and data clocksource/drivers/loongson1: Set variable ls1x_timer_lock storage-class-specifier to static clocksource/drivers/arm_arch_timer: Disable timer before programming CVAL dt-bindings: timer: oxsemi,rps-timer: remove obsolete bindings clocksource/drivers/timer-oxnas-rps: Remove obsolete timer driver
2 parents 7a1415e + 5146e1f commit 4accdb9

File tree

7 files changed

+131
-479
lines changed

7 files changed

+131
-479
lines changed

Documentation/devicetree/bindings/timer/oxsemi,rps-timer.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

drivers/clocksource/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,6 @@ config VF_PIT_TIMER
461461
help
462462
Support for Periodic Interrupt Timer on Freescale Vybrid Family SoCs.
463463

464-
config OXNAS_RPS_TIMER
465-
bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
466-
select TIMER_OF
467-
select CLKSRC_MMIO
468-
help
469-
This enables support for the Oxford Semiconductor OXNAS RPS timers.
470-
471464
config SYS_SUPPORTS_SH_CMT
472465
bool
473466

drivers/clocksource/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ obj-$(CONFIG_MTK_TIMER) += timer-mediatek.o
5454
obj-$(CONFIG_MTK_CPUX_TIMER) += timer-mediatek-cpux.o
5555
obj-$(CONFIG_CLKSRC_PISTACHIO) += timer-pistachio.o
5656
obj-$(CONFIG_CLKSRC_TI_32K) += timer-ti-32k.o
57-
obj-$(CONFIG_OXNAS_RPS_TIMER) += timer-oxnas-rps.o
5857
obj-$(CONFIG_OWL_TIMER) += timer-owl.o
5958
obj-$(CONFIG_MILBEAUT_TIMER) += timer-milbeaut.o
6059
obj-$(CONFIG_SPRD_TIMER) += timer-sprd.o

drivers/clocksource/arm_arch_timer.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,13 @@ static __always_inline void set_next_event_mem(const int access, unsigned long e
792792
u64 cnt;
793793

794794
ctrl = arch_timer_reg_read(access, ARCH_TIMER_REG_CTRL, clk);
795+
796+
/* Timer must be disabled before programming CVAL */
797+
if (ctrl & ARCH_TIMER_CTRL_ENABLE) {
798+
ctrl &= ~ARCH_TIMER_CTRL_ENABLE;
799+
arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, clk);
800+
}
801+
795802
ctrl |= ARCH_TIMER_CTRL_ENABLE;
796803
ctrl &= ~ARCH_TIMER_CTRL_IT_MASK;
797804

drivers/clocksource/timer-loongson1-pwm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define CNTR_WIDTH 24
3030

31-
DEFINE_RAW_SPINLOCK(ls1x_timer_lock);
31+
static DEFINE_RAW_SPINLOCK(ls1x_timer_lock);
3232

3333
struct ls1x_clocksource {
3434
void __iomem *reg_base;

drivers/clocksource/timer-oxnas-rps.c

Lines changed: 0 additions & 288 deletions
This file was deleted.

0 commit comments

Comments
 (0)