Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1940743ybl; Tue, 3 Dec 2019 15:21:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzhLDBK5F6w82TsbY9dvP1TMljIq+r2TohqjKVQWKbU6BXDyrIz2QDprkDkGYHuvk5eidL2 X-Received: by 2002:aca:111a:: with SMTP id 26mr113679oir.145.1575415318220; Tue, 03 Dec 2019 15:21:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575415318; cv=none; d=google.com; s=arc-20160816; b=AKvX9DTIqW04NmolrwJ//9t7ATdKEheGzOvgzIkCnOSs0t1S6SV888AWzNc7NnLtIw z9VoU9L5spf8uM4cfFownTThGEeJhpT9ieZ4ksFjWabT4HUD2GNBdRIlnYKTdj+jFNm7 em3aFPsuZQRaQtUu+UUNd8qU/Vtk1r4swoUzlnIWeRvswfRYZVwBAOR+RwTcSq1kYuWC b1Ap1+vTwUUzIxZNxrUMulILLlArlHJp2X+VPykWFcTNGjSZGmGhX37d1ZoaCWEwNonY SXA+t6p2+RqFAFU3bjsH30OVpNezRjfKvwK+hTUH1Pv1LAom+TOaITh6jX8a6DMrLYpu OfWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mII/yjUvDIh0okdT3D5WAuffGPhZZM+fNJtjaEjofcs=; b=V750mTEI6xctswTQFFa1O4HNyYV87+1hqnLWAHJxP+O0g7wwfPwnvP5quh40h21XPN hua0qc2rZPEezM6ySAxZ1ieJVSHvTOovaVkX3w7bTXp67AEptmRb8iFYs/B1RFHvEebH c/TK+23+gJGMW8O6AWHlbRf0gx+o0WSjyDdcMy5WpMZbzS2Id/9SS5PT/ObJrlAt1EKV 7RU80dEfxjVXhpSfS/oMHXJ/tYjUMpJmiIvZDF/0ze2pWZPAWrDrsTlDIKZlvnU6jzYR qh94axwKJerEce7y8kynDK3InKoXm8Gdz2C+EUPYTFe20syHVINrWp3eqBmASUX5nJHE l4ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Icp0jU5m; 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 l21si2365445oic.126.2019.12.03.15.21.45; Tue, 03 Dec 2019 15:21:58 -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=pass header.i=@kernel.org header.s=default header.b=Icp0jU5m; 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 S1730661AbfLCW6e (ORCPT + 99 others); Tue, 3 Dec 2019 17:58:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:55000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730440AbfLCW6d (ORCPT ); Tue, 3 Dec 2019 17:58:33 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F2DF2053B; Tue, 3 Dec 2019 22:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575413912; bh=KdwJcVLx58wGM4fAureZyuDrPm9Qz7LvQkB3v0xg2TQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Icp0jU5mxPCSJdNFoeV/74iTLoxC3f0OOT+aXJVGUb0S5CEiAqH775rtqTb5EAvlc VVyAMEdaHUkzXoltT+ZeLo8//dRjoCKnTNKa/7ulD2J2jhO/8Pw7zYPqpn7aZLyT+u d8PWLjmcVrv7FJZ3VkRb72AGM4kln2NI+FRi8dFY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gabriel Fernandez , Stephen Boyd , Mathieu Poirier Subject: [PATCH 4.19 311/321] clk: stm32mp1: add CLK_SET_RATE_NO_REPARENT to Kernel clocks Date: Tue, 3 Dec 2019 23:36:17 +0100 Message-Id: <20191203223443.326776604@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203223427.103571230@linuxfoundation.org> References: <20191203223427.103571230@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriel Fernandez commit 72cfd1ad1057f16fc614861b3c271597995e57ba upstream. 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 Signed-off-by: Stephen Boyd Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman --- drivers/clk/clk-stm32mp1.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) --- a/drivers/clk/clk-stm32mp1.c +++ b/drivers/clk/clk-stm32mp1.c @@ -1286,10 +1286,11 @@ _clk_stm32_register_composite(struct 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 stm32mp 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)),