[RESEND PATCHv2 08/28] ARM: OMAP2+: clockdomain: add usecounting support to autoidle APIs
From: tony@atomide.com (Tony Lindgren)
Date: 2016-06-28 07:06:06
Also in:
linux-clk, linux-omap
From: tony@atomide.com (Tony Lindgren)
Date: 2016-06-28 07:06:06
Also in:
linux-clk, linux-omap
* Tero Kristo [off-list ref] [160613 12:08]:
The previous implementation was racy in many locations, where the current status of the clockdomain was read out, some operations were executed, and the previous status info was used afterwards to decide next state for the clockdomain. Instead, fix the implementation of the allow_idle / deny_idle APIs to properly have usecounting support. This allows clean handling internally within the clockdomain core, and simplifies the usage also within hwmod.
Acked-by: Tony Lindgren <tony@atomide.com> Or let me know if this can be picked separately. Tony