From patchwork Thu Sep 12 13:26:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 173709 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp2127757ilq; Thu, 12 Sep 2019 06:26:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKQXrTbCe8JVrnD2akV0WUhb0I7aISQ42RWCkrVRYkf1Y3+iQzsuuefWzMrVpgpxr0FIPB X-Received: by 2002:aa7:db47:: with SMTP id n7mr20446928edt.169.1568294798697; Thu, 12 Sep 2019 06:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568294798; cv=none; d=google.com; s=arc-20160816; b=aU33w/BnbUOZITf2GMPnMfDVUUR1MeCSvvNXPK6gfVX7qBlRiRbKvqIl6Ks8zD2NYh AfrRU5T22sxxhnyTNXxemvD6j1pvZJmqr7G50Wyl/arzMNZ06t7fG8Rf5B/H2EHJbHLo 3DKpRN0ClRb3bVxKT/IXmtQ4AetrbNhJpdy2u0xgzfLstWUFmDg1LfSXYjF8g1nPqyrv AwjrVZTMkAdrbA1HF6bfhKZuKWSZjc34yUwo+d/1vPYRmO1jp4e1BI6BX1aTFv1s0VCW 0Fb1/DXh6pFlr2WsABcq/uvjsKenqfxsCJXaBTSRAtlu4XIqytaGpcd/3cARW5VPctCb iPHg== 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=V1b0FMEeevL3urjdJBuTCnTQb6LW6rgCELNI7FyhZeE=; b=VuhXG57d5pqTodeH2XaYJhrqnlbJjwje8unusmsbIEMwJnIXNHBSe17fwIoBI7/mt4 wVumCr+PuANHFXXEGQsXorNdlNcWaC22+hf6O7DAEqK6jqmCQ8IAdalhiCqxDGzYoq0J fdxYuACrZoYD4YAn0OMoH+wozuO92VZN2uVZMp5TDEgkD7+Q92f58PZ67oTOoIkbHmRk FLrfLW7QRYdKRU65LRNji90EyrqtPR+Nft2HeUDqTx+jIsEhI8qVNZrKpa4xihSFftix fuN+iXRym6ec72EVp2rnX/wjWjptTMTV+rj4/2Ie7DCjjSlDy3daQ34mKkvWwo8SGhnu X7Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SWXhSgj1; 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 s11si12814304ejz.384.2019.09.12.06.26.38; Thu, 12 Sep 2019 06:26:38 -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=SWXhSgj1; 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 S1732112AbfILN0h (ORCPT + 5 others); Thu, 12 Sep 2019 09:26:37 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38390 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732098AbfILN0h (ORCPT ); Thu, 12 Sep 2019 09:26:37 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8CDQZHU021229; Thu, 12 Sep 2019 08:26:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568294795; bh=V1b0FMEeevL3urjdJBuTCnTQb6LW6rgCELNI7FyhZeE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SWXhSgj1ds7YXWFx1umEHZxcRWRw/uZMwVBvjO9WU/Jg6BWBTnbaPmj9/XXo7SXcr V8fY7hEVYy7QecLtoCy5rBreQDh8DscRMChz8IgpY42+kZfR1Uu55I7LddG1iLHzQY iRpHJWaUIlempeFzYYXuSgr04W2F9WWbL/Ht+plQ= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8CDQZx0011793 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 12 Sep 2019 08:26:35 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 12 Sep 2019 08:26:35 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE108.ent.ti.com (10.64.6.29) 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; Thu, 12 Sep 2019 08:26:35 -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 x8CDQFvY130575; Thu, 12 Sep 2019 08:26:33 -0500 From: Tero Kristo To: , , , CC: , Subject: [PATCHv3 09/10] clk: ti: am43xx: drop idlest polling from pruss clkctrl clock Date: Thu, 12 Sep 2019 16:26:12 +0300 Message-ID: <20190912132613.28093-10-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912132613.28093-1-t-kristo@ti.com> References: <20190912132613.28093-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 The PRUSS modules on AM43xx SoCs have a hardreset line and are controlled by a PRCM reset line. Any clkctrl enable/disable operations cannot be checked for module enabled/disabled status independent of the reset operation, and this causes some unwanted timeouts in the kernel and unbalanced states for the PRUSS clocks. These details should be handled by the driver integration code itself. Add the CLKF_NO_IDLEST flag to the PRUSS clkctrl clock so that these module status checks are skipped. 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 2782d91838ac..7ec8fe6aa7c1 100644 --- a/drivers/clk/ti/clk-43xx.c +++ b/drivers/clk/ti/clk-43xx.c @@ -126,7 +126,7 @@ static const struct omap_clkctrl_reg_data am4_l3s_clkctrl_regs[] __initconst = { }; static const struct omap_clkctrl_reg_data am4_pruss_ocp_clkctrl_regs[] __initconst = { - { AM4_PRUSS_OCP_PRUSS_CLKCTRL, NULL, CLKF_SW_SUP, "pruss_ocp_gclk" }, + { AM4_PRUSS_OCP_PRUSS_CLKCTRL, NULL, CLKF_SW_SUP | CLKF_NO_IDLEST, "pruss_ocp_gclk" }, { 0 }, };