Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1435846imm; Thu, 4 Oct 2018 13:38:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV60LFJoCRAeW30El4sqUkR6o4KwgU1UHCSySndXe1RJsgIRtD0LhSjTBWctr3B3SVB3PaU+4 X-Received: by 2002:a62:2c16:: with SMTP id s22-v6mr3704783pfs.6.1538685537169; Thu, 04 Oct 2018 13:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538685537; cv=none; d=google.com; s=arc-20160816; b=wi+zy7oQH1OS1jAavFU6XNdkPFfg8uH7V/Vwar+54eujE/yL1aw2xhbgNVLMLpD7S4 KVjI9gTYTL0B4/GtDcvkklJxKKzjBVltdnnQslVMuGQW/3l9dKlFMHhFpd50ufgBlbj3 IuJCnnlrxyYoq44IPj8paxwGPMEYtOWwkwJARkUKVDvOfr2P/VBYB7bYOnaEBi+pMDHf ylqfJbvwXQgf9dykugkU0cQYCzFonwEtynUOtW7sT79tLv7GX7rD5xLI1yqFXLv0z/CH a+jU5xDqgaPdExVtoLy3vQwT52mp0jAzE49DNDAN832ZpZctttseDTLTvXaOGWUvIp1l dFqQ== 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=f5vN4Nr+Jqz2KJe3rLSHRYJR6SIZV4zzrcuUPCuhVa8=; b=jVhDvX0fB//IhjqQoWKpo+VaxMyYkH0TRw9GQfLsuCCUVXTWmOUynKCRhhNnZp7mbS kaCbVcwKZ5+Npo0Tu6rIhxP2vdEaHoLGAy1hSRfoOP3y6TPlJP36rET3Xgr4XpSaNMy8 bAHNejVE5DZ/zJ2h2yvZ3p8QKiWZhz+siXWEwK2A+E2Qv7phBlc0Z2XmrDkMxgOcmdLk RHVAAVEpg1HIY4yxEF+bYdXd1AVS6FktmTpOVK31ANfLEA469mQzfmAyzeM0NTdXfAPk thbrQex5sSIhtLrJIpjN8jHKfTFqEGwsq41FxgWyx/zhpx+m2vhnjS57cfaDi7OYMOO/ wIgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Gx8sWVnp; 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 h8-v6si6042620pls.94.2018.10.04.13.38.41; Thu, 04 Oct 2018 13:38: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=Gx8sWVnp; 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 S1727870AbeJEDda (ORCPT + 99 others); Thu, 4 Oct 2018 23:33:30 -0400 Received: from mail.andi.de1.cc ([85.214.239.24]:33928 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727523AbeJEDda (ORCPT ); Thu, 4 Oct 2018 23:33:30 -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=f5vN4Nr+Jqz2KJe3rLSHRYJR6SIZV4zzrcuUPCuhVa8=; b=Gx8sWVnp0VsBowr3guNIawi4bN UjoIiwKGKVZQ2waB3WB80Du7iXL/JPS0b/TiYS9FXT5l54mKLOAhejPqdpMxTzQLUrUa78jS2lPLR sYgFab5dbRHuucHjIZFUUvTibINCaqunUsBdeqnPPvDNzH0MTT+EjmBzVloHc0sjd3o0=; 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 1g8AO7-0007GT-Pf; Thu, 04 Oct 2018 22:38:23 +0200 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1g8AO7-0005m8-CU; Thu, 04 Oct 2018 22:38:23 +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, bcousson@baylibre.com, paul@pwsan.com, tony@atomide.com, letux-kernel@openphoenux.org Cc: Andreas Kemnade Subject: [PATCH 0/2] mach-omap2: handle autoidle denial Date: Thu, 4 Oct 2018 22:38:15 +0200 Message-Id: <20181004203817.22101-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. To handle multiple users of a single ick, autoidle is disabled when a user of that ick requires that (has the OCPIF_SWSUP_IDLE)) Changes since the RFC version: - mutex lock for autoidle changes - deny_idle/allow_idle calls moved to clock enable/disable of the individual modules Andreas Kemnade (2): clk: ti: add a usecount for autoidle arm: omap_hwmod disable ick autoidling when a hwmod requires that arch/arm/mach-omap2/omap_hwmod.c | 16 ++++++++++++---- drivers/clk/ti/autoidle.c | 32 ++++++++++++++++++++++++-------- include/linux/clk/ti.h | 1 + 3 files changed, 37 insertions(+), 12 deletions(-) -- 2.11.0