Skip to contentSkip to conversation

drivers: clocksource: timer-riscv: Depend on the SBI

PATCH In review Palmer Dabbelt 2 participants 2 messages Nov 25, 2020 – Nov 26, 2020

Subsystems (2)
lore
Share & tools
lore

Palmer Dabbelt

author maintainer
#0 lore raw

PATCH 1/1 drivers: clocksource: timer-riscv: Depend on the SBI

From: Palmer Dabbelt <[email protected]>

Fundamentally this is an SBI timer driver, so it cannot be enabled without support for the RISC-V SBI.

Fixes d5be89a8d118 ("RISC-V: Resurrect the MMIO timer implementation for M-mode systems")
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clocksource/Kconfig +1 -0
index 68b087bff59c..3eeaf0efba8f 100644
@@ -655,6 +655,7 @@ config ATCPIT100_TIMER
 config RISCV_TIMER
 	bool "Timer for the RISC-V platform" if COMPILE_TEST
 	depends on GENERIC_SCHED_CLOCK && RISCV
+	depends on RISCV_SBI
 	select TIMER_PROBE
 	select TIMER_OF
 	help
Signature · 7 lines
2.29.2.454.gaff20da3a2-goog


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#1 lore raw

Hi Palmer,  I send a same patch and have been acked from you : )

https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/

Quoted 23 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

Fundamentally this is an SBI timer driver, so it cannot be enabled without support for the RISC-V SBI.

Fixes d5be89a8d118 ("RISC-V: Resurrect the MMIO timer implementation for M-mode systems")
---
  drivers/clocksource/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/clocksource/Kconfig +1 -0
index 68b087bff59c..3eeaf0efba8f 100644
@@ -655,6 +655,7 @@ config ATCPIT100_TIMER
  config RISCV_TIMER
  	bool "Timer for the RISC-V platform" if COMPILE_TEST
  	depends on GENERIC_SCHED_CLOCK && RISCV
+	depends on RISCV_SBI
  	select TIMER_PROBE
  	select TIMER_OF
  	help