Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1679733imj; Thu, 14 Feb 2019 10:12:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IaEMDCUisusTWvGaqnxBPxX+IJMxiazaD1d07GtneYFI0+esDPWMo9qyyuGjZM4rt4a9IBU X-Received: by 2002:a63:9246:: with SMTP id s6mr1113374pgn.349.1550167946614; Thu, 14 Feb 2019 10:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550167946; cv=none; d=google.com; s=arc-20160816; b=jgKuagmxPgJO6CPivrpSLT98HZhj6h++vpo1kma0i1F7zln2frGReP32AJRXynOHCL snDHPZawD0i86tUvRGxwd3cNRm8CHctKmZVg0J0XcJza81rr8y/HIwWmA9GxvICPYXEt ndngjonvmQB38eWEce14bR7eQBmPw6fWxcU6zFzAmrpxofxzvScH65YjMTK1FC3qJ6Pb cxujgE5dVosaEbB/0tjO+p5+LmKMu52BK6pFePiYoWcHu2sshH8kBnyxQZjCI66+LkQJ jjoLtnpmZ79qxZkcJT5zx2afrRIsdP8X1iadCBaPHAT+DaKm4h0hZWdpGfcS0+GQABDc IFEw== 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=LkeKJRxmYXAYOWyX9rf314f5slJ7WgBhtcRyGlxTuhQ=; b=KiVKdxzYWotLCGPnjZDox1pAce6CxwY5BoDsrnPGzNUOJbymytcauktzDJsrok3IdD 4UC/W8nat+C/97xhMTfSZ2arLwq5YkxuxiciJ5yNm65vcqifHe5KdZJK+QPN+8lb3n4r rX5T/LppDt75k/YA7OSjOgRbQ8yfFtdbM84OP+dme9IwOCMwPI8CORQppwpXyjwydWBX WW3stx1zEw1bHvmutuELE3L/yD0yw9Yr9ndkLX8IlmiWBb5XR3wF/gDQz/LQC3IYZnjo wgAdrxm5bI9bCLG8qPT0DUi+Vf+bUwWER9YiVcPIuJ7BdkQGJfl0fef71q48F5+lKsaV GJxw== 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 l67si670066pfc.147.2019.02.14.10.12.10; Thu, 14 Feb 2019 10:12:26 -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 S2406650AbfBNKlc (ORCPT + 99 others); Thu, 14 Feb 2019 05:41:32 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:41800 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732914AbfBNKlE (ORCPT ); Thu, 14 Feb 2019 05:41:04 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1EAa01t026777; Thu, 14 Feb 2019 11:40:52 +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 2qmwsujrjf-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Feb 2019 11:40:52 +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 F0CFB38; Thu, 14 Feb 2019 10:40:51 +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 CFF174EB0; Thu, 14 Feb 2019 10:40:51 +0000 (GMT) Received: from localhost (10.75.127.44) by SFHDAG4NODE2.st.com (10.75.127.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 14 Feb 2019 11:40:51 +0100 From: To: Michael Turquette , Stephen Boyd , Maxime Coquelin , Alexandre Torgue CC: , , , , Gabriel Fernandez Subject: [PATCH v2 2/7] clk: stm32mp1: add CLK_SET_RATE_NO_REPARENT to Kernel clocks Date: Thu, 14 Feb 2019 11:40:42 +0100 Message-ID: <20190214104047.1173-3-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.44] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) 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 STM32MP1 clock IP offers lots of Kernel clocks that are shared by multiple IP's at the same time. Then boot loader applies a clock tree that allows to use all IP's at same time and with the maximum of performance. Not change parents on a change rate on kernel clocks ensures the integrity of the system. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index be2ed35977ca..e72079de83f4 100644 --- a/drivers/clk/clk-stm32mp1.c +++ b/drivers/clk/clk-stm32mp1.c @@ -1286,10 +1286,11 @@ _clk_stm32_register_composite(struct device *dev, MGATE_MP1(_id, _name, _parent, _flags, _mgate) #define KCLK(_id, _name, _parents, _flags, _mgate, _mmux)\ - COMPOSITE(_id, _name, _parents, CLK_OPS_PARENT_ENABLE | _flags,\ - _MGATE_MP1(_mgate),\ - _MMUX(_mmux),\ - _NO_DIV) + COMPOSITE(_id, _name, _parents, CLK_OPS_PARENT_ENABLE |\ + CLK_SET_RATE_NO_REPARENT | _flags,\ + _MGATE_MP1(_mgate),\ + _MMUX(_mmux),\ + _NO_DIV) enum { G_SAI1, @@ -1952,7 +1953,8 @@ static const struct clock_config stm32mp1_clock_cfg[] = { MGATE_MP1(GPU_K, "gpu_k", "pll2_q", 0, G_GPU), MGATE_MP1(DAC12_K, "dac12_k", "ck_lsi", 0, G_DAC12), - COMPOSITE(ETHPTP_K, "ethptp_k", eth_src, CLK_OPS_PARENT_ENABLE, + COMPOSITE(ETHPTP_K, "ethptp_k", eth_src, CLK_OPS_PARENT_ENABLE | + CLK_SET_RATE_NO_REPARENT, _NO_GATE, _MMUX(M_ETHCK), _DIV(RCC_ETHCKSELR, 4, 4, CLK_DIVIDER_ALLOW_ZERO, NULL)), -- 2.17.0