]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: AM33XX: Add missing .clkdm_name to clkdiv32k_ick clock
authorVaibhav Hiremath <hvaibhav@ti.com>
Wed, 27 Mar 2013 10:04:26 +0000 (15:34 +0530)
committerTony Lindgren <tony@atomide.com>
Fri, 17 May 2013 17:07:45 +0000 (10:07 -0700)
commita6d25f4c951b8b28f2eaec6f891ff834622532f2
treeb6dbee9f9495d113f1bb6e50ab3be1c00b6a2bbc
parenta545ec160afea245939290e7f616f68de906a85c
ARM: AM33XX: Add missing .clkdm_name to clkdiv32k_ick clock

It is required to enable respective clock-domain before
enabling any clock/module inside that clock-domain.

During common-clock migration, .clkdm_name field got missed
for "clkdiv32k_ick" clock, which leaves "clk_24mhz_clkdm"
unused; so it will be disabled even if childs of this clock-domain
is enabled, which keeps child modules in idle mode.

This fixes the kernel crash observed on AM335xEVM-SK platform,
where clkdiv32_ick clock is being used as a gpio debounce clock
and since clkdiv32k_ick is in idle mode it leads to below crash -

Crash Log:
==========
[    2.598347] Unhandled fault: external abort on non-linefetch (0x1028) at
0xfa1ac150
[    2.606434] Internal error: : 1028 [#1] SMP ARM
[    2.611207] Modules linked in:
[    2.614449] CPU: 0    Not tainted  (3.8.4-01382-g1f449cd-dirty #4)
[    2.620973] PC is at _set_gpio_debounce+0x60/0x104
[    2.626025] LR is at clk_enable+0x30/0x3c

Cc: stable@vger.kernel.org # v3.9
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/cclock33xx_data.c