Merge tag 'timers-urgent-2021-12-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull timer fixes from Thomas Gleixner:
"Two fixes for clock chip drivers:

- A regression fix for the Designware APB timer. A recent change to
the error checking code transformed the error condition wrongly so
it turned into a fail if good condition.

- Fix a clang build fail of the ARM architected timer driver"

* tag 'timers-urgent-2021-12-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
clocksource/drivers/arm_arch_timer: Force inlining of erratum_set_next_event_generic()
clocksource/drivers/dw_apb_timer_of: Fix probe failure

Changed files
+8 -3
drivers
+7 -2
drivers/clocksource/arm_arch_timer.c
··· 394 394 395 395 static atomic_t timer_unstable_counter_workaround_in_use = ATOMIC_INIT(0); 396 396 397 - static void erratum_set_next_event_generic(const int access, unsigned long evt, 398 - struct clock_event_device *clk) 397 + /* 398 + * Force the inlining of this function so that the register accesses 399 + * can be themselves correctly inlined. 400 + */ 401 + static __always_inline 402 + void erratum_set_next_event_generic(const int access, unsigned long evt, 403 + struct clock_event_device *clk) 399 404 { 400 405 unsigned long ctrl; 401 406 u64 cval;
+1 -1
drivers/clocksource/dw_apb_timer_of.c
··· 47 47 pr_warn("pclk for %pOFn is present, but could not be activated\n", 48 48 np); 49 49 50 - if (!of_property_read_u32(np, "clock-freq", rate) && 50 + if (!of_property_read_u32(np, "clock-freq", rate) || 51 51 !of_property_read_u32(np, "clock-frequency", rate)) 52 52 return 0; 53 53