Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp563559imm; Wed, 3 Oct 2018 22:53:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV61/yulv+TxaRUSe9ffaxjX+QDIXw0lAKVX2LavTasUwOnJhxqnQDLdqAzAh2YsD9IQ5Umku X-Received: by 2002:a17:902:b285:: with SMTP id u5-v6mr4809798plr.221.1538632437892; Wed, 03 Oct 2018 22:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538632437; cv=none; d=google.com; s=arc-20160816; b=YdLmcceGxGVnt/GxGFAP/eZqEAphYTeIrcBdiHGoHZwUzARA/a+5l7KOI2JuQzcE5I jur+lO5zlmYVcL9MYxbrxsYQIkeS8jf+7gkGrb0tY+C1P6G29uCyckaKa16Ha9Sx15Ud N5MrQ+BEGNWwA9M3yt6Ejkrmw+kc7qAc0QmcgWaebwfliEOvTtkGzWp8n1e3fx9Wo22G eEa6LnkRcw25M39e7W+jIUFRoFgGJGXE+weFu0BO/CwWUqt3eW48dnWvMbzWKRdf/DK8 TnLQ79ePs3cHO6D0E+bQGMyn4x7U9sQrlacu+maJRWuAsm1pe4TYFNkv0ICabG5nX4QF inxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=A8OtTmmIqAi34/iweTVhJk0UefWSAt5qAatDD1l4zfM=; b=ZikPWEMgD6TH0XDSyuSkXR3QiYhHB6DfYdCOMxdSoWkY657OOhwynO3herNSaOQmc5 juleHkzheAKUs7MvrRjggXRQpTqzIiuiOxoS4J/1dkXKFOmn2CFZwm91EOV02a3SSk+A F4DloBMI1DqjxoLp/2JT/86Voj+Q30bUYjRrAOoL7/HWSJ5+Q6qpkOy2GRnbhMxksSk+ MAURe0K5noj1wrbblXAurHxLnsU9swA1WOV7BpMtXKF09hVYdirr5dTLI04FImKx+7oc UHtZozHtTIxqvnqUb2nCME4gsE7LLXFgvDCe4gt/L8ENriRc4DyiRpPEuH7AmE8pZ1rM C65A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=DDvUfGyp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9-v6si3308685pgm.109.2018.10.03.22.53.42; Wed, 03 Oct 2018 22:53:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=DDvUfGyp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727467AbeJDMnu (ORCPT + 99 others); Thu, 4 Oct 2018 08:43:50 -0400 Received: from mail.andi.de1.cc ([85.214.239.24]:60024 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbeJDMnu (ORCPT ); Thu, 4 Oct 2018 08:43:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=References:In-Reply-To:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=A8OtTmmIqAi34/iweTVhJk0UefWSAt5qAatDD1l4zfM=; b=DDvUfGyp1Umgk+HpkDcRN3V9l dSNmPn8YCxOZsJ0LQkMQriiPc1SvYu78AxEA1wuTHgU6lcdZTlM0hxEaDCKnDlv1CRCNnkHl0BC6x cuhlro14U1xWKVroCu7ic2GYq+x0KmgCnoXmPZ0UbcijC4XvxPZi2miqdjmNFVnthbayY=; Received: from p200300ccfbcbd5001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbcb:d500:1a3d:a2ff:febf:d33a] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7wYS-0003YY-5q; Thu, 04 Oct 2018 07:52:08 +0200 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1g7wYS-00060b-1G; Thu, 04 Oct 2018 07:52:08 +0200 From: Andreas Kemnade To: t-kristo@ti.com, mturquette@baylibre.com, sboyd@kernel.org, linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, paul@pwsan.com, tony@atomide.com, letux-kernel@openphoenux.org Cc: Andreas Kemnade Subject: [PATCH RFC 2/2] arm: mach-omap2: setup iclk autoidle according to flags Date: Thu, 4 Oct 2018 07:51:47 +0200 Message-Id: <20181004055147.23048-3-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181004055147.23048-1-andreas@kemnade.info> References: <20181004055147.23048-1-andreas@kemnade.info> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 #include #include +#include #include #include #include @@ -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