]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: hwmod: fix deassert hardreset clkdm usecounting
authorTero Kristo <t-kristo@ti.com>
Thu, 26 Feb 2015 16:06:00 +0000 (18:06 +0200)
committerPaul Walmsley <paul@pwsan.com>
Sun, 1 Mar 2015 23:24:04 +0000 (16:24 -0700)
commit949b1e6bac01047df2d9a8d97f824d243dfb4db1
tree0bea3d5cabe2d3b129289de888ab4be3b3133573
parent99ac575569d77d03b4b11fa47d0e58ca802cf0f4
ARM: OMAP2+: hwmod: fix deassert hardreset clkdm usecounting

Deasserting hardreset increases the usecount for the hwmod parent clockdomain
always, however usecount is only decreased at end in certain error cases.
This causes software supervised clockdomains to remain always on, preventing
idle. Fixed by always releasing the hwmods clockdomain parent when exiting
the function.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Carlos Hernandez <ceh@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c