]> 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)
commit11408406b487743fcd828a35bcede0b6c0c6e4a9
tree0bea3d5cabe2d3b129289de888ab4be3b3133573
parentd94028df98fb69902ec2fdde0492b2c088f0cc4d
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