]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP: dmtimer: check for pm_runtime_get_sync() failure
authorSuman Anna <s-anna@ti.com>
Tue, 17 Mar 2015 01:14:02 +0000 (20:14 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 17 Mar 2015 17:44:58 +0000 (10:44 -0700)
commit5de850e8b1629e19c5763fee18ae379670b4a032
treeaa4fb16367ba9ebf251145f72a1558f871e46b56
parent5d0e9bdbe2d7de2f94476aa1508bdc9896b4a317
ARM: OMAP: dmtimer: check for pm_runtime_get_sync() failure

The current OMAP dmtimer probe does not check for the return
status of pm_runtime_get_sync() before initializing the timer
registers. Any timer with missing hwmod data would return a
failure here, and the access of registers without enabling the
clocks for the timer would trigger a l3_noc interrupt and a
kernel boot hang. Add proper checking so that the probe would
return a failure graciously without hanging the kernel boot.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c