Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 5146e1f

Browse files
committed
Merge tag 'timers-v6.6-rc1' of https://git.linaro.org/people/daniel.lezcano/linux into timers/core
Pull clocksource/clockdevice updates from Daniel Lezcano: - Remove oxnas the 0x810 and the 0x820 timer drivers, the platform being no longer maintained and removed (Neil Armstrong) - Disable the timer before programming the CVAL as there is no guarantee of atomicity on the ARM architected timer (Walter Chang) - Set variable ls1x_timer_lock static on the Loongson1 (Tom Rix) - Remove duplication of code and data by factoring out the structures into a single one and convert to the platform driver on the sun5i (Mans Rullgard) - Explicitly include correct DT includes (Rob Herring)
2 parents d2b32be + 0a8b07c commit 5146e1f

File tree

15 files changed

+136
-485
lines changed

15 files changed

+136
-485
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
@@ -774,6 +774,13 @@ static __always_inline void set_next_event_mem(const int access, unsigned long e
774774
u64 cnt;
775775

776776
ctrl = arch_timer_reg_read(access, ARCH_TIMER_REG_CTRL, clk);
777+
778+
/* Timer must be disabled before programming CVAL */
779+
if (ctrl & ARCH_TIMER_CTRL_ENABLE) {
780+
ctrl &= ~ARCH_TIMER_CTRL_ENABLE;
781+
arch_timer_reg_write(access, ARCH_TIMER_REG_CTRL, ctrl, clk);
782+
}
783+
777784
ctrl |= ARCH_TIMER_CTRL_ENABLE;
778785
ctrl &= ~ARCH_TIMER_CTRL_IT_MASK;
779786

drivers/clocksource/bcm2835_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include <linux/irqreturn.h>
1111
#include <linux/kernel.h>
1212
#include <linux/module.h>
13+
#include <linux/of.h>
1314
#include <linux/of_address.h>
1415
#include <linux/of_irq.h>
15-
#include <linux/of_platform.h>
1616
#include <linux/slab.h>
1717
#include <linux/string.h>
1818
#include <linux/sched_clock.h>

drivers/clocksource/nomadik-mtu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include <linux/io.h>
1111
#include <linux/clockchips.h>
1212
#include <linux/clocksource.h>
13+
#include <linux/of.h>
1314
#include <linux/of_address.h>
1415
#include <linux/of_irq.h>
15-
#include <linux/of_platform.h>
1616
#include <linux/clk.h>
1717
#include <linux/jiffies.h>
1818
#include <linux/delay.h>

drivers/clocksource/sh_cmt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <linux/irq.h>
1919
#include <linux/module.h>
2020
#include <linux/of.h>
21-
#include <linux/of_device.h>
2221
#include <linux/platform_device.h>
2322
#include <linux/pm_domain.h>
2423
#include <linux/pm_runtime.h>

drivers/clocksource/timer-cadence-ttc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/clocksource.h>
1414
#include <linux/of_address.h>
1515
#include <linux/of_irq.h>
16+
#include <linux/platform_device.h>
1617
#include <linux/slab.h>
1718
#include <linux/sched_clock.h>
1819
#include <linux/module.h>

drivers/clocksource/timer-gxp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/of_address.h>
99
#include <linux/of_irq.h>
1010
#include <linux/of_platform.h>
11+
#include <linux/platform_device.h>
1112
#include <linux/sched_clock.h>
1213

1314
#define TIMER0_FREQ 1000000

drivers/clocksource/timer-integrator-ap.c

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

88
#include <linux/clk.h>
99
#include <linux/clocksource.h>
10+
#include <linux/of.h>
1011
#include <linux/of_irq.h>
1112
#include <linux/of_address.h>
12-
#include <linux/of_platform.h>
1313
#include <linux/clockchips.h>
1414
#include <linux/interrupt.h>
1515
#include <linux/sched_clock.h>

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;

0 commit comments

Comments
 (0)