Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1677413imj; Thu, 14 Feb 2019 10:10:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IYf7mgFPLXDEkPWnIdxmOIp7UUSJOBYdeWGR1p9+E8FHxEVe2t+5DdTZ7PaRaIlvXfECsxV X-Received: by 2002:a63:fc49:: with SMTP id r9mr1086938pgk.209.1550167824161; Thu, 14 Feb 2019 10:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550167824; cv=none; d=google.com; s=arc-20160816; b=JrkVODgf0n9FuoPpMLDIDexTxmKO9xMBBPOczuYOGk46ooCDcg8JH3SfYT/MLESglf tfdh48zc3l5maIxe3ynMd4Lq6bbcojMch38QSpnTTE58T/n95tJq+F+yvureR5jMn9GS 0dYMEMXFYpOm7e7fda/LRIdaMbFOiU7F5i30/jZ1A3UiifBJ4TG6fBHChDZP1XkGFyuc 6b3gk3riAiue03lzk5r4jk6Eja/6AHryQXUaXQiImLkjUWF2g70IjjOLjOrzRDCWW5Gd bOnNUqSv2AImZY50uvq56A49zXXjwmHPMw4J50GPq0J3shCqPGv+bVPpOOnRQV/U9X9r MqFQ== 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; bh=UuZ/P+PvFy8t4N5VD6RHGKzgs9sSvQ+PXDvULCHyVe0=; b=PJHJWyZ6xd/ma9yBhH2E2dHNA/dKN9rrHRYx00cLnYG3BbbM0CJchkSwX4OMAzIibR 8rAj47GxPo8aNeJ6+hE8IlXxtAgVqiQy1dOge1SqChJ4En9gbDRPHZRxiKfTv2ygMWyN 5IWq/UN3WEW8IUHKKM57xMNLUzAfZ8OioGGi5Sk+bfs6B6+HRJ6L/hQhJQ0Z96SFOXds OsPxvinAhRExkUWB/7eNh9iED+q2m0biwfcqkWwlSVy0w7xbHSwVXRaOIzHuoPmU5M4L 9NINUkh2uvhCHUQV68xv0YHR0f0y68L9orBzAtug96uR9btWVUhtB+fX3qj9nr5LerGF /6qA== ARC-Authentication-Results: i=1; mx.google.com; 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 30si3078971ple.287.2019.02.14.10.10.08; Thu, 14 Feb 2019 10:10:24 -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; 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 S2404726AbfBNKlI (ORCPT + 99 others); Thu, 14 Feb 2019 05:41:08 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:13993 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2438387AbfBNKlG (ORCPT ); Thu, 14 Feb 2019 05:41:06 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1EAa3UR000644; Thu, 14 Feb 2019 11:40:53 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2qmxr72gn9-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Feb 2019 11:40:53 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CD2C931; Thu, 14 Feb 2019 10:40:52 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag4node2.st.com [10.75.127.11]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B529F4EB0; Thu, 14 Feb 2019 10:40:52 +0000 (GMT) Received: from localhost (10.75.127.45) by SFHDAG4NODE2.st.com (10.75.127.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 14 Feb 2019 11:40:52 +0100 From: To: Michael Turquette , Stephen Boyd , Maxime Coquelin , Alexandre Torgue CC: , , , , Gabriel Fernandez Subject: [PATCH v2 3/7] clk: stm32mp1: set ck_csi as critical clock Date: Thu, 14 Feb 2019 11:40:43 +0100 Message-ID: <20190214104047.1173-4-gabriel.fernandez@st.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190214104047.1173-1-gabriel.fernandez@st.com> References: <20190214104047.1173-1-gabriel.fernandez@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG4NODE2.st.com (10.75.127.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-14_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriel Fernandez ck_csi is used for IO compensation so it should be considered as "always-on" and kept on. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index e72079de83f4..f9b7d5e9491d 100644 --- a/drivers/clk/clk-stm32mp1.c +++ b/drivers/clk/clk-stm32mp1.c @@ -1661,7 +1661,9 @@ static const struct clock_config stm32mp1_clock_cfg[] = { /* External / Internal Oscillators */ GATE_MP1(CK_HSE, "ck_hse", "clk-hse", 0, RCC_OCENSETR, 8, 0), - GATE_MP1(CK_CSI, "ck_csi", "clk-csi", 0, RCC_OCENSETR, 4, 0), + /* ck_csi is used by IO compensation and should be critical */ + GATE_MP1(CK_CSI, "ck_csi", "clk-csi", CLK_IS_CRITICAL, + RCC_OCENSETR, 4, 0), GATE_MP1(CK_HSI, "ck_hsi", "clk-hsi-div", 0, RCC_OCENSETR, 0, 0), GATE(CK_LSI, "ck_lsi", "clk-lsi", 0, RCC_RDLSICR, 0, 0), GATE(CK_LSE, "ck_lse", "clk-lse", 0, RCC_BDCR, 0, 0), -- 2.17.0