OSDN Git Service

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)
commit80d2518dfd19e9750d0c1203851774bb9732268b
tree0bea3d5cabe2d3b129289de888ab4be3b3133573
parent0717103e6566e8e743c5e2e5a4d86dbe8c8878c6
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