Deny autoidle for hwmods with the OCPIF_SWSUP_IDLE flag, that makes hwmods working properly which cannot handle autoidle properly in lower power states. Affected is e. g. the omap_hdq. It also disables CM_AUTOIDLE_DSS. Need to check if that is wanted or not. Note: Autoidle is not enabled explicitly because there might be clocks which do not support that operation and it is enabled afterwards in arm/mach-omap2/pm.c anyways. Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx> --- arch/arm/mach-omap2/omap_hwmod.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index bb641e6c93d0..6f9687a4f421 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -131,6 +131,7 @@ #include <linux/errno.h> #include <linux/io.h> #include <linux/clk.h> +#include <linux/clk/ti.h> #include <linux/clk-provider.h> #include <linux/delay.h> #include <linux/err.h> @@ -2410,9 +2411,12 @@ static void __init _setup_iclk_autoidle(struct omap_hwmod *oh) continue; if (os->flags & OCPIF_SWSUP_IDLE) { - /* XXX omap_iclk_deny_idle(c); */ + omap2_clk_deny_idle(os->_clk); } else { - /* XXX omap_iclk_allow_idle(c); */ + /* + * no allow_idle here since there is + * later an allow idle in pm.c + */ clk_enable(os->_clk); } } -- 2.11.0