[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181004055147.23048-3-andreas@kemnade.info>
Date: Thu, 4 Oct 2018 07:51:47 +0200
From: Andreas Kemnade <andreas@...nade.info>
To: t-kristo@...com, mturquette@...libre.com, sboyd@...nel.org,
linux-omap@...r.kernel.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, paul@...an.com, tony@...mide.com,
letux-kernel@...nphoenux.org
Cc: Andreas Kemnade <andreas@...nade.info>
Subject: [PATCH RFC 2/2] arm: mach-omap2: setup iclk autoidle according to flags
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@...nade.info>
---
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
Powered by blists - more mailing lists