Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1299251imu; Wed, 16 Jan 2019 16:42:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN6bpL+epu7LjfMeqtUUCRFkoS1E03s9OjfJp+eUyik+Z+fUdLg9PmMSQgA1pPtf8+UDaG1u X-Received: by 2002:a63:5a08:: with SMTP id o8mr11409391pgb.185.1547685727310; Wed, 16 Jan 2019 16:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547685727; cv=none; d=google.com; s=arc-20160816; b=KS7iMhx3Xng/NtSRc/mPTZf/JrRmojRNiDxsQsMYakBJR2W3/cKzxgRekiyIQPjDpV hU54HVKbeh2odQCbESjNYGUvSGNrg5F9x9GYJADcTiQKIDEHR4pDH1+d7mYkJddIpiy+ lBTksG1V3lVuBMDBeAeOluDT2++aIyHQ9a3BzbKOV0Fa28/vMqi9qyWrUafY59njBRzj MLRUF0X+eLRhPUh2I5PmuCG6n8Y/+H3UPdxnMWTHgeUwQPvANCeGlV9KExVR5EshOb94 txk15OjpfwpQmy4ZQuHBUQt7GeBxNZIGCgBwUkiSz6YmnA1jLYXs2JUwz069Qq//IZCR JOdA== 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=l0OqbqymuJ1ioZUjzeMqnRiXJULUOy8uam8Qddu53Jk=; b=nqIgJbKUWIxsoOHyqs6qYmmly0R4zchfuYoI4xui3hpm1JLhoDuaGAPRvZKMLD4zq+ 9OVhdYx6SKjOFP8laDEndS2C7T0SjQTWw4XlwCBH7ACEEdEMUhQiK9OQXTI9MmeXI3RR npw1NcSP4kdC4PdlzH0+FkJs2sPUcAkzg7DpXxN8xhVDdZ4P4ApOW1npzdQ1qiOXKfpm nVECV+IcPryn+/izi9aKZgEC/e1bJURZMQxhBoDANlJq4xI5N9kNDUR+ndczaJf6aggR qDhG0taOlTaVl0aZzAq9FRUr5W/unJo4o/PFLDetcpMxyH5l5qOkOvwIr3ny5dCMyBGX lsWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=GCfzX6GI; 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 g23si7116697pgb.229.2019.01.16.16.41.49; Wed, 16 Jan 2019 16:42:07 -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=GCfzX6GI; 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 S1732733AbfAPWEo (ORCPT + 99 others); Wed, 16 Jan 2019 17:04:44 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:55772 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731870AbfAPWEl (ORCPT ); Wed, 16 Jan 2019 17:04:41 -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=l0OqbqymuJ1ioZUjzeMqnRiXJULUOy8uam8Qddu53Jk=; b=GCfzX6GIJBy0O8ipaXk8xEPTBq jMVfErVSBVmHxRr9P+UcqsROTraWXNmQw10GLwrMn/Pae8gL0BleN/UV67rLnNWFopkEQhqJWenGC Br3236N0F9nEZt4WBlPfbbs90e/V6bB1VQO9NLA6APmx1uYh2oChgxUDm/dAjWhvXx0w=; Received: from p200300ccfbcc8e001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:fbcc:8e00: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 1gjtIW-0006lW-07; Wed, 16 Jan 2019 23:04:32 +0100 Received: from andi by aktux with local (Exim 4.89) (envelope-from ) id 1gjtIV-0002PO-CF; Wed, 16 Jan 2019 23:04:31 +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 v3 0/3] mach-omap2: handle autoidle denial Date: Wed, 16 Jan 2019 23:04:26 +0100 Message-Id: <20190116220429.9136-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 v3: - replace CLK_IS_BASIC Changes v2: - uses spinlocks instead of mutexes - invert counter logic - check whether clock type is basic Depends on: clk: ti: get rid of CLK_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 | 52 +++++++++++++++++++++++++++++++++------- include/linux/clk/ti.h | 1 + 3 files changed, 57 insertions(+), 12 deletions(-) -- 2.11.0