aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2013-01-23 03:05:21 -0800
committerZiyan <jaraidaniel@gmail.com>2016-04-03 14:56:11 +0200
commite1c6fce23182b44f8d9e27e6fba09cb64519d15e (patch)
tree99019d66ca3b4fba9ccf47ea84723e51d7fc25d4 /security
parent51bcade11201207a7cf1ccc7aedae03c6ec20d37 (diff)
downloadkernel_samsung_tuna-e1c6fce23182b44f8d9e27e6fba09cb64519d15e.zip
kernel_samsung_tuna-e1c6fce23182b44f8d9e27e6fba09cb64519d15e.tar.gz
kernel_samsung_tuna-e1c6fce23182b44f8d9e27e6fba09cb64519d15e.tar.bz2
Watchdog: OMAP: Fix the runtime pm code to avoid module getting stuck intransition state.
OMAP watchdog driver is adapted to runtime PM like a general device driver but it is not appropriate. It is causing couple of functional issues. 1. On OMAP4 SYSCLK can't be gated, because of issue with WDTIMER2 module, which constantly stays in "in transition" state. Value of register CM_WKUP_WDTIMER2_CLKCTRL is always 0x00010000 in this case. Issue occurs immediately after first idle, when hwmod framework tries to disable WDTIMER2 functional clock - "wd_timer2_fck". After this module falls to "in transition" state, and SYSCLK gating is blocked. 2. Due to runtime PM, watchdog timer may be completely disabled. In current code base watchdog timer is not disabled only because of issue 1. Otherwise state of WDTIMER2 module will be "Disabled", and there will be no interrupts from omap_wdt. In other words watchdog will not work at all. Watchdong is a special IP and it should not be disabled otherwise purpose of it itself is defeated. Watchdog functional clock should never be disabled. This patch updates the runtime PM handling in driver so that runtime PM is limited only during probe/shutdown and suspend/resume. The patch fixes issue 1 and 2 Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> [steven@steven676.net: backport to p-android-omap3-3.0]
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions