clocksource/drivers/timer-riscv: Set CLOCK_EVT_FEAT_C3STOP based on DT
authorAnup Patel <apatel@ventanamicro.com>
Tue, 3 Jan 2023 14:11:02 +0000 (19:41 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 13 Feb 2023 12:10:16 +0000 (13:10 +0100)
commit8932a9533a9cdd1fa2924a061dc87277991507ca
tree1f856cdbc6b3997fa126584b3702d4837d2002f9
parente2bcf2d876fd7ca6ecca09794ac58d7e3a544794
clocksource/drivers/timer-riscv: Set CLOCK_EVT_FEAT_C3STOP based on DT

We should set CLOCK_EVT_FEAT_C3STOP for a clock_event_device only
when riscv,timer-cannot-wake-cpu DT property is present in the RISC-V
timer DT node.

This way CLOCK_EVT_FEAT_C3STOP feature is set for clock_event_device
based on RISC-V platform capabilities rather than having it set for
all RISC-V platforms.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20230103141102.772228-4-apatel@ventanamicro.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
drivers/clocksource/timer-riscv.c