Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2336939imu; Sat, 10 Nov 2018 12:32:40 -0800 (PST) X-Google-Smtp-Source: AJdET5dhTLbkKXktVSPeK/Yk2BEvssiTfj7LmhJD1uYYI8BWbUiuNKkjMak/uQ/3cYoaKptr2QxQ X-Received: by 2002:a17:902:b498:: with SMTP id y24-v6mr14348576plr.179.1541881959977; Sat, 10 Nov 2018 12:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541881959; cv=none; d=google.com; s=arc-20160816; b=moJM8XJ66GJU9tottS4gnjMSZZAgCmzTDh6uEdLx9wrxNjY6SXvUabDXDV7PhA/zW7 sv767akaosvT7LoZwyMFyvJ78D4ImjG86CFo4up8CWtsxauwZ2C9Kb8qLTz3wMFnzuVn KbmM29zSLtybT6S8aDAtuySBr7HaWsYYuCZvt1bTWVm5GgAfZvWtiMvujiVvO0W2IxNa 2cWab9059fnnYcuXlh0f98BfrA8b9ALzdOl+4jkyad+OyD0vMZbvcnnpnD8voJP21U9x /Fg5L75SaZfpjATRKsJb9m0XYqf5N91G/C+u2nRzXbsdjnEvfZ1O5djSN0RKNm27xMAP FF+A== 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=bO8fw3E8J4oKemO7llA7anNrNdoC8OgqALnQqj3MjZk=; b=eXD1gnNn8u12sWYzMbg70yG5DL/Cpq77C5jE9QC+9X6m7egcN68a9G4v4Mr64g2UVr rwyFTOfbdcb2cV2zLvWfoxK3S1A7hABOC/YyhxpiLvcbM8YZ7koWVQ9XbjFYzrgYs/HY l/zrIyc4+yrZJyMh6iLPobDZaC0XgYPJwB5cOu+PKBMT+tAz+eejK/4N2LJXca+GJsVV iJac4E0KOg+htpJRT4U0jinTMQf0g1aP8e6Bh7P++xuq+SNmaqp/p+qxVyEJB3sBwGAZ 3RkkGHtdz+y7XhdpkIuw6UE6BWzvYQ7Ozsz2gMM9VRoC7/lculeQipqIwvHS6PDqWbyl 0vgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=ekGazFYp; 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 k21-v6si10743946pgl.169.2018.11.10.12.32.24; Sat, 10 Nov 2018 12:32:39 -0800 (PST) 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=ekGazFYp; 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 S1726733AbeKKGRy (ORCPT + 99 others); Sun, 11 Nov 2018 01:17:54 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:55184 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbeKKGRw (ORCPT ); Sun, 11 Nov 2018 01:17:52 -0500 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=bO8fw3E8J4oKemO7llA7anNrNdoC8OgqALnQqj3MjZk=; b=ekGazFYpSa6GbCkH1OexwCfARh AvAGJ7+f9+4mFOUoj8qonE1x/63ipTFiqwslugIiv+PdvAO0wTbsm8CKJzF1OzEFN+M9WKx4S1lCP 8fopOMS9PQgxOYP6OZea2dKD7epKjfI1lmnbYAQS+IRgkqF+jvo7LuITyWrsI/6RHNZQ=; Received: from p200300ccfbcefb001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbce:fb00: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 1gLZug-0000Ap-Qx; Sat, 10 Nov 2018 21:31:26 +0100 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1gLZug-0003Tm-91; Sat, 10 Nov 2018 21:31:26 +0100 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 v2 0/3] mach-omap2: handle autoidle denial Date: Sat, 10 Nov 2018 21:31:12 +0100 Message-Id: <20181110203115.13335-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 v1: - uses spinlocks instead of mutexes - invert counter logic - check whether clock type is basic Andreas Kemnade (3): clk: ti: add a usecount for autoidle clk: ti: check clock type before doing autoidle ops arm: omap_hwmod disable ick autoidling when a hwmod requires that arch/arm/mach-omap2/omap_hwmod.c | 16 ++++++++++---- drivers/clk/ti/autoidle.c | 48 +++++++++++++++++++++++++++++++--------- include/linux/clk/ti.h | 1 + 3 files changed, 51 insertions(+), 14 deletions(-) -- 2.11.0