]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: arm_arch_timer: Discard unavailable timers correctly
authorSudeep Holla <sudeep.holla@arm.com>
Sun, 28 Sep 2014 23:50:05 +0000 (01:50 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 28 Sep 2014 23:50:05 +0000 (01:50 +0200)
commit226c4c91e8ff1b82e1ea45421121ab38fa1ad621
tree7817a8d82c95bdeda912a9e4611a9d893b7a16b3
parente8c50390dc9b1e2d54b649196097b5e8f5a6c559
clocksource: arm_arch_timer: Discard unavailable timers correctly

Currently we wait until both cp15 and mem timers are probed if we
have both timer device nodes present in the device tree without
checking if the device is actually available. If one of the timer
device node present is disabled, the system locks up on the boot
as no timer gets registered.

This patch adds the check for the availability of the timer device
so that unavailable timers are discarded correctly. It also adds
the missing of_node_put.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/arm_arch_timer.c