Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp562452imm; Wed, 3 Oct 2018 22:52:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV61dzpaoJh8fUDl+bKcnX5EThspiowE8WscGhsnax9L/gNeNCduJL+8nd23mv5nVAzZxCc/V X-Received: by 2002:a62:7a81:: with SMTP id v123-v6mr5165969pfc.240.1538632350929; Wed, 03 Oct 2018 22:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538632350; cv=none; d=google.com; s=arc-20160816; b=S/nLvxgWnhWyHbkmu70JNpxg63BY84SUYkMrZthe2GD0FPU2uwMKMzguVsOB7bYHTX HETamDAzO4N/slUBgKkdOL7xFRzMRUrv2+uzyPQOUW8z4IJTAXJybQ96ixKWjHkezb4L IxObUH8Mbf6h/r6nxn2QslRGmMDpvNwFUH7xz7uWmapY8xIqO1+Vfw3JEQ1xxhqGsjkr Q7UjXAIsrGwDJ2Ab8QwjOnxlFWRo2qUkRggjZ21yqcQ1w6ywVYcLYHl+XyYl8xacyuJc gDDkYyC/VmMJzun4cT4S6ix3zmpGQN6DWC/CosjoB/4jaAjE1PjuQ7yh464qLcpSoR2x 3fXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ZkJaryn0oRU0mMCGuUyfFKSashwDck+vSpj30SjDcuE=; b=dz/6LILrBCOJj3lEkYUSsXObOVIRJM5KGrfdREWdqlBR0D9KAS3xN69ifJlxYAVAXi CP1a3Tr+0CR1uYlnIpTIBhwMuV/cW4oPhUWWnpSWOJkodbfBnj/wPU/O/BreF8Zl8CRv gQZEYpZ6z1Ey735V5cjc79rcTUfdxMpvhEWIAXIKgzreuHd0Lm5T31ptHYGbd8bB4rLz heeE62QE82xvJMvPxBpIWAEeUr/X379Y2RfeRhZAILaNaVGV96IfWyDUTejsLzfq72GH vSTz8IEbLsCrnvKBRQuyvmQTMfd8rwpxYjleaLB50w9tKueDvBSkt3RQs9+oR9/8hhvD sx+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=jT6Zgg03; 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 a1-v6si3314474pga.240.2018.10.03.22.52.15; Wed, 03 Oct 2018 22:52:30 -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=jT6Zgg03; 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 S1727354AbeJDMnm (ORCPT + 99 others); Thu, 4 Oct 2018 08:43:42 -0400 Received: from mail.andi.de1.cc ([85.214.239.24]:59956 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbeJDMnl (ORCPT ); Thu, 4 Oct 2018 08:43:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZkJaryn0oRU0mMCGuUyfFKSashwDck+vSpj30SjDcuE=; b=jT6Zgg037sxkZK5PnjxSJtEFuw 8rT5ZcEpF0RWWG6mxh/iT0lM3B4y7GKGROWLf/nJFfI3f7kzqqz+k919uydcC+GdpY3j9N6qMOBww Hiezir6dkAE0+Wjxg5mzaxyQJ5RQrgzI55Zaj1rXiSrOSpSnyJqwo/GGbEDIzeS0z/U4=; 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 1g7wYH-0003Xg-0k; Thu, 04 Oct 2018 07:51:57 +0200 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1g7wYG-00060V-KL; Thu, 04 Oct 2018 07:51:56 +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 0/2] mach-omap2: handle autoidle denial Date: Thu, 4 Oct 2018 07:51:45 +0200 Message-Id: <20181004055147.23048-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On the gta04 with a dm3730 omap_hdq does not work properly when the device enters lower power states. Idling uart1 and 2 is enough to show up that problem, if there are no other things enabled. Further research reveals that hdq iclk must not be turned off during transfers, also according to the TRM. That fact is also correctly described in the flags but the code to handle that is incomplete. Since the order is first disable all autoidles, then disable selected and then enable all, we need to either change that order or add a usecount. Since it is done only in init, we could think about changing order. Andreas Kemnade (2): clk: ti: add a usecount for autoidle arm: mach-omap2: setup iclk autoidle according to flags arch/arm/mach-omap2/omap_hwmod.c | 8 ++++++-- drivers/clk/ti/autoidle.c | 20 ++++++++++++-------- include/linux/clk/ti.h | 1 + 3 files changed, 19 insertions(+), 10 deletions(-) -- 2.11.0