From patchwork Mon Oct 7 12:26:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 175336 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4207222ill; Mon, 7 Oct 2019 05:26:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxN22G8F8XPfSHpjDBEpkD+Ge+3XwvLb+U4PbsBS7Ce+oMSKNeMSeRbwSPLB111h0jbi0u3 X-Received: by 2002:a17:906:d792:: with SMTP id pj18mr15943373ejb.327.1570451176637; Mon, 07 Oct 2019 05:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570451176; cv=none; d=google.com; s=arc-20160816; b=UxE69vtkpndGhYaaoYebrtvkBynIvAlqMpieFVZNJfw56bEkqlNEG7TcL1N+bHCKFY PamDTUIH9kOVi/Lq6qo/Xj7mV/NWIJJddGEOXPzhdogjfqaF0Rid20AOFTBL8JXmfFWW ExpTwZUjIEic+x1CBhe5q9JK/LuzNbcn7l0wwIkJNIy+xTKGSBXYcEESmHq1OU+g15p3 qjJ1Wt2SvX0WxsCpAVh9jeRpUKv+R+ykVpO7UeP/LQRT5w2QH10zH5u0+UEo2JMTnv3u Jg9xXkhgLY2HjDxV7rKD6rQ54ewszoI7kzODE2tVedLB/Z3xbfAuopUNwQVBalXnOBKN 5i7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Le6SKwPCYTVf7PsI5acKrr9OQLX3vSvwu+K9qljitMw=; b=UsyAOzBPGqOmsvyOIbbx+MbfOo5Eo/rmUI14BI4mUJ8mFd8u77uHf4f+EpSlCQ2d4O Dphj+48Bvphf+JLywEDmN/3E5DUf+5RC5cSWg90b+sPcMiNKsiiViSeXUPrytEC5Tgqo FkLfBmFt/BkB7MQp5lpK1XF0hJ8yqJSMWedlzTGUkzSQQ5ytfoHOe+9pmvVQCZhzJUUi 9YheNS6GhJmWclOF4mPjHwmym3mFZNBXEz8BANmRQRUzJGyt6n2EJJDt2ZVF8YM2cR47 VkTBLqJ8Cjj/XttHirvJMcRhgh3HP2Kmoshq/HZBybTiuvp+eWIIpIedyBTMhxCu1Plk 8kRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n9Oz++NZ; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si6666604eju.265.2019.10.07.05.26.16; Mon, 07 Oct 2019 05:26:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n9Oz++NZ; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbfJGM0P (ORCPT + 5 others); Mon, 7 Oct 2019 08:26:15 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:44310 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727467AbfJGM0P (ORCPT ); Mon, 7 Oct 2019 08:26:15 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x97CQCre023243; Mon, 7 Oct 2019 07:26:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570451172; bh=Le6SKwPCYTVf7PsI5acKrr9OQLX3vSvwu+K9qljitMw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=n9Oz++NZmEeQqYnWlcdhKQC0A0EIZtztPclLduZyNUkQcLdE0UXE0c7TRiMTfmA5f abyGW/kMw7mjkO1zDFWJcVBLUhUF0PDJv5q0RPWiMjAZ1nMU45dR27M/ykWzFvRt7K T6qHt2B15oEoqL6amCr5wzfAycbv+m8jAxT3N9/s= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x97CQCf6081802 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Oct 2019 07:26:12 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 7 Oct 2019 07:26:09 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 7 Oct 2019 07:26:09 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97CQ8Na085058; Mon, 7 Oct 2019 07:26:10 -0500 From: Tero Kristo To: , , CC: , Subject: [PATCH 1/2] clk: ti: am33xx: drop idlest polling from gfx clock Date: Mon, 7 Oct 2019 15:26:03 +0300 Message-ID: <20191007122604.18508-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007122604.18508-1-t-kristo@ti.com> References: <20191007122604.18508-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Due to the way ti sysc and hardreset line control is now implemented, it is not possible to poll the clock status for gfx clock independent of hardreset line control. Thus, add a flag to prevent handling this status bit from clock driver. Correct sequencing of events is guaranteed by ti-sysc bus driver. Reported-by: Tony Lindgren Signed-off-by: Tero Kristo --- drivers/clk/ti/clk-33xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/clk/ti/clk-33xx.c b/drivers/clk/ti/clk-33xx.c index 935efb66b389..e001b9bcb6bf 100644 --- a/drivers/clk/ti/clk-33xx.c +++ b/drivers/clk/ti/clk-33xx.c @@ -217,7 +217,7 @@ static const struct omap_clkctrl_reg_data am3_l4_rtc_clkctrl_regs[] __initconst }; static const struct omap_clkctrl_reg_data am3_gfx_l3_clkctrl_regs[] __initconst = { - { AM3_GFX_L3_GFX_CLKCTRL, NULL, CLKF_SW_SUP, "gfx_fck_div_ck" }, + { AM3_GFX_L3_GFX_CLKCTRL, NULL, CLKF_SW_SUP | CLKF_NO_IDLEST, "gfx_fck_div_ck" }, { 0 }, }; From patchwork Mon Oct 7 12:26:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 175337 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4207254ill; Mon, 7 Oct 2019 05:26:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPA6E80BsNtTLbewpucqzqeI8Wo1vsNiZyfC4yux1BkJSnEhRBrxNFWRjJP1sJ8/soIniE X-Received: by 2002:a17:906:cec3:: with SMTP id si3mr23573432ejb.145.1570451178290; Mon, 07 Oct 2019 05:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570451178; cv=none; d=google.com; s=arc-20160816; b=P/gQSE6ZEiVoVPb/Wkj30UiUH+sjeYK49BYVu4NUt7msIARW3++JFSqTt8PwRPlmGT KtupTHd4/SGAexOEg8uq3aMt+VV2gx48gvnQV+eXwAG7eMp3NZingTJIgBk7LIb0HgmB pKWTdD43glpr30r1VSQ4Vqs0OHcYe/uQZOHqQKtk/b0Qz2vFHpuCU9OhlvX+SpGIjvnu sOHiyekpM8UARwlkf0xmSypSa2CN5oHRYF9GHQ0klLrmKzj3nwSnOK4EKdRhVqsmX15J xwQiZfnLcFmET0Z6jrZ+xva1Iob8UWD6f5TwCLfxExM2Jpfp6P8GzPwLA/ymgGKf7da+ 06mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=/qDgsQyfQBJBA2CeABJl0nuZIggHcHivQ6XH24f9Dok=; b=d8NLd9KnVAnq8Y5LscWDTMHI5qm+oN8dsNCw79LUdxsCfFlJNHnnaRi7edXto9WUp8 ixbMfNXl2GhkM7m7hwcGU1/+mcYDCuRG41zhHpHCkb+pO2YIGa/e36NucLUxhyUpX/oH zd3gYDIIhYRCIa7YdRr/cjTKYiJSAnIexzyrvSwZXIZgwZBEKQKBOk732dXInpMhCse1 X8APV72i9a3pZOngCmbdldLOW8jjDKr4scWqlqDt0XndKnHCHE63DlFImnjqPZ+Y8ryw j3LW8FqNUa/W5ek1wIMYCzf4sNccfFM399xHqA7EN6P3OgcrazWoI3bvL0BBMCcZr09Y vl+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mRmZdtMg; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si6666604eju.265.2019.10.07.05.26.18; Mon, 07 Oct 2019 05:26:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mRmZdtMg; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727920AbfJGM0R (ORCPT + 5 others); Mon, 7 Oct 2019 08:26:17 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35608 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727467AbfJGM0R (ORCPT ); Mon, 7 Oct 2019 08:26:17 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x97CQFVT025369; Mon, 7 Oct 2019 07:26:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570451175; bh=/qDgsQyfQBJBA2CeABJl0nuZIggHcHivQ6XH24f9Dok=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mRmZdtMg6oYnt4fuFC8enKXFKZP/o1dNAzJdsfEqwuMp9wCq++Btq3kX8HT8M5uH9 /cJE6SYmDbDunckdCVct46qdZP21Wh7oiDhZT239BK2Z5cHrh1OABJnHhRJ1PldcOg b8BPs8xUbrBY8W24TsB6d6rgDe4PlH4lp3H/cJnU= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97CQF2h107218; Mon, 7 Oct 2019 07:26:15 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 7 Oct 2019 07:26:11 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 7 Oct 2019 07:26:11 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97CQ8Nb085058; Mon, 7 Oct 2019 07:26:11 -0500 From: Tero Kristo To: , , CC: , Subject: [PATCH 2/2] clk: ti: am43xx: drop idlest polling from gfx clock Date: Mon, 7 Oct 2019 15:26:04 +0300 Message-ID: <20191007122604.18508-3-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007122604.18508-1-t-kristo@ti.com> References: <20191007122604.18508-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Due to the way ti sysc and hardreset line control is now implemented, it is not possible to poll the clock status for gfx clock independent of hardreset line control. Thus, add a flag to prevent handling this status bit from clock driver. Correct sequencing of events is guaranteed by ti-sysc bus driver. Signed-off-by: Tero Kristo --- drivers/clk/ti/clk-43xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/clk/ti/clk-43xx.c b/drivers/clk/ti/clk-43xx.c index 7ec8fe6aa7c1..af3e7805769e 100644 --- a/drivers/clk/ti/clk-43xx.c +++ b/drivers/clk/ti/clk-43xx.c @@ -73,7 +73,7 @@ static const struct omap_clkctrl_reg_data am4_mpu_clkctrl_regs[] __initconst = { }; static const struct omap_clkctrl_reg_data am4_gfx_l3_clkctrl_regs[] __initconst = { - { AM4_GFX_L3_GFX_CLKCTRL, NULL, CLKF_SW_SUP, "gfx_fck_div_ck" }, + { AM4_GFX_L3_GFX_CLKCTRL, NULL, CLKF_SW_SUP | CLKF_NO_IDLEST, "gfx_fck_div_ck" }, { 0 }, };