Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2883487rwb; Mon, 5 Sep 2022 03:08:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR6e3W1qU6idCeisxaHPfk0ncLEaUrdmrL83fCSpue1vzktkJNzNAcRiT1BSydRYBu0StxGm X-Received: by 2002:a63:1a45:0:b0:42a:88e8:f14 with SMTP id a5-20020a631a45000000b0042a88e80f14mr41164061pgm.17.1662372499462; Mon, 05 Sep 2022 03:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662372499; cv=none; d=google.com; s=arc-20160816; b=uKL6G2aENVGW2Vm+AIWGRrGLw/iy0YCkxw1zZc6irz/1Y7c39JG2GkZi5rXt4p843T BzNKtLNQwPjqd6KHPBbFBt6vsDa11Z9P8qlDoN2ExuagJk3ur13yw4E82Jd+b2VbiutM r48+BkJb9sBiCyDfIEUc2wFxEyKZ0MTGsvaGLcbCFWFt2rthy0Og5vPdNt8+SAMuQqMw p8jgwtREbvBzWdIHL+ro/8qDobvSrFa0ak7Rk9C+u9R71XDg7FGD64xhd8L9vb6WMeKu uqUDmlIg11JiMEjU9SaxubY8iq9zbCVQe2PKJDS9p6RWy1GOWazYKDKRll47zgOqUVMD 2Q2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pfS6VfbrB2hhKB3MP/E2QySNmwkMTvwsYKUzykDeyHs=; b=fXb1OtITO8RR/KaCca/FP28PycbiWwvauVLwg9WAb1huuAd7vD0TmWqU25c4Mu0BQX /8KWqAlqrzh+fL79U+OKQRY+MiOWgxowOLNV1o2krFmStCcCmHghnM+jphSrBL4XVjun /0oibMZX1n7nMjdzzM5tXiTqFcRAY54FpIZ39lexmJg7a9xrDWx5N7gmD/G2hHzfUjRz LHQ58mmk7cmxIVAEcqk+0FYuOytq/1kN4Dl0yrGtb1jCETc3LpQSN6Ja0TFJIlEYCO1S ytWo/4S/zQCOHk0YOhgKYGbNaf6qd+Hs0q9Yp/xRlxlEHqcxQ0psUrNNv2SzStsypaCN jbPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KcF6CebA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h193-20020a636cca000000b0041d66279902si10087466pgc.865.2022.09.05.03.08.08; Mon, 05 Sep 2022 03:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KcF6CebA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236364AbiIEKFZ (ORCPT + 99 others); Mon, 5 Sep 2022 06:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237460AbiIEKEl (ORCPT ); Mon, 5 Sep 2022 06:04:41 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2268511A32; Mon, 5 Sep 2022 03:04:40 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 051916601F31; Mon, 5 Sep 2022 11:04:37 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1662372279; bh=HrCKKc/4oHF8ameggu4aG6O2V2G7VX/dsz8S56XbbxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KcF6CebA9m1M0yB5Gh3ymTfDLM3L0SKuavBBxR9Fgg6EXH7J74i3Ahmrwghuhbmgq k+qo/KvEIwX/9iOCDBwzUUUrHpkTnylY73luFG9QnQtT+L1lLVfhNFcsGkxopc6FU9 zu+Goz/InJSVjQMJiIJUlsTlViWCn1yzJNUoX73L3MHETu/0lNcNuDetWm8t5Rf/u/ bzGBPct1YRhwUAuwc1Se0hME85PZ7cp3o5+uYVzpi+69QTOoXs/SADU6aDWreDsjB5 JCi7qsq1TQNsMUifFTJMBH7u4xT7P8ZMID5YTue1HIyePHEU4MpqBmAuCXuHqyX96X 4kXHo2QeF24EQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: mturquette@baylibre.com, sboyd@kernel.org, angelogioacchino.delregno@collabora.com, wenst@chromium.org, miles.chen@mediatek.com, rex-bc.chen@mediatek.com, nfraprado@collabora.com, chun-jie.chen@mediatek.com, jose.exposito89@gmail.com, drinkcat@chromium.org, weiyi.lu@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH 09/10] clk: mediatek: clk-mt8192-mfg: Propagate rate changes to parent Date: Mon, 5 Sep 2022 12:04:15 +0200 Message-Id: <20220905100416.42421-10-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220905100416.42421-1-angelogioacchino.delregno@collabora.com> References: <20220905100416.42421-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Following what was done on MT8183 and MT8195, also propagate the rate changes to MFG_BG3D's parent on MT8192 to allow for proper GPU DVFS. Signed-off-by: AngeloGioacchino Del Regno --- drivers/clk/mediatek/clk-mt8192-mfg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8192-mfg.c b/drivers/clk/mediatek/clk-mt8192-mfg.c index 3bbc7469f0e4..8ea5acdf832c 100644 --- a/drivers/clk/mediatek/clk-mt8192-mfg.c +++ b/drivers/clk/mediatek/clk-mt8192-mfg.c @@ -18,8 +18,10 @@ static const struct mtk_gate_regs mfg_cg_regs = { .sta_ofs = 0x0, }; -#define GATE_MFG(_id, _name, _parent, _shift) \ - GATE_MTK(_id, _name, _parent, &mfg_cg_regs, _shift, &mtk_clk_gate_ops_setclr) +#define GATE_MFG(_id, _name, _parent, _shift) \ + GATE_MTK_FLAGS(_id, _name, _parent, &mfg_cg_regs, \ + _shift, &mtk_clk_gate_ops_setclr, \ + CLK_SET_RATE_PARENT) static const struct mtk_gate mfg_clks[] = { GATE_MFG(CLK_MFG_BG3D, "mfg_bg3d", "mfg_pll_sel", 0), -- 2.37.2