From patchwork Mon Oct 24 11:30:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9141 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp457512wru; Mon, 24 Oct 2022 06:36:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7BxdSFGl4livFclPzEDeugc23ZuhHdzKJKDD6485emt7btRU8CRs4SJBMjsGIPHRZVjq6e X-Received: by 2002:a17:906:730f:b0:791:9b75:2ca1 with SMTP id di15-20020a170906730f00b007919b752ca1mr26364620ejc.140.1666618568007; Mon, 24 Oct 2022 06:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618568; cv=none; d=google.com; s=arc-20160816; b=Ao4NkMjFoZxcVnFCC4/6VL9KGCXWwGV+iJ8AqUd2ryur7RSOd8KihYZ0LHrwXYGtrX p00XZKwbnOwLWB7M8phBChuvSA2SfRvcJ6InUGDDNodpVyirjkoD62FQppkQICP0zbtO l/IB1I/0PPeoTuUaUX1/7OD5UP2uFWmzck+0vX/lVgIXJCxV8On50DPjeJ34SXULlq5W B7XDUyJFlxCfS75eAaNRPvxHL8BDDy2Jr83EjDoLsURCarB/MOWWRq+zI/2K3QPywWNv F+byBAN3h7py4cN4fw+PuG4+vXIH/G8FwQRetYxOF1fwPaPuc6Sd5KU6kZPK4Bu40dYZ v2ZQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/BZNhYn13W+36/Yuz8521Xfy/tIB7dwXiwnHBP1N8eQ=; b=eBaIibrTI+iax3OM+0Yns8qgwDymwq6DD6q6yH2MwWR3/aiRw20x58U5JtooZE2BO0 UrzUG9U8a3Ab3HonM/B0xRS/4Q2KZ+gPWcwVwda88PTW5x0h5Td9/eGVzUDbv2hFjs3M 1kGJMAJELJD7ux+L8xE99CxTBWvLx/9fC/g2EmgZUj/yrxFYVVRVrdfZv5U0ak5pONAv SU+qZjZ/SQtkUX/2JkqPfT1gfKaWo1K05+LYQgIB+6H0xFNqsrrS5T9ZV6gKy4VbRMsz RVgB0R0VKwJKYl2bj4X0gnP8jGxXy9ANaj2lgtU7GEVOzvJBAjJckB1yHtTIJ+busFj3 Tx1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Zqs/o7ZO"; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc7-20020a1709071c0700b0078e0e850902si27642716ejc.868.2022.10.24.06.35.27; Mon, 24 Oct 2022 06:36:07 -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=@linuxfoundation.org header.s=korg header.b="Zqs/o7ZO"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231631AbiJXNZy (ORCPT + 99 others); Mon, 24 Oct 2022 09:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234184AbiJXNXC (ORCPT ); Mon, 24 Oct 2022 09:23:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E865A45F6F; Mon, 24 Oct 2022 05:30:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D606061286; Mon, 24 Oct 2022 12:28:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC5D5C433C1; Mon, 24 Oct 2022 12:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614489; bh=V2dOPSF3+RqJgCZ0dAjorrygamRapc5bi17muQbPhos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zqs/o7ZOrFDao8x/ky4Phy2DbK9LNbQ2K0m7P246xSyOSQCuZh6Dy+bDOHV7ZDX8W jjDLBxLYujXKxEEyG/9jf1FiiXjIXTtpCYUTFirpWsCUsvLkWWTujE3G50skC3NaOH zdUJfzgdZwI7f6emURC3YtilRapZMwe2QspJDqwQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , AngeloGioacchino Del Regno , Sasha Levin Subject: [PATCH 5.10 253/390] clk: mediatek: mt8183: mfgcfg: Propagate rate changes to parent Date: Mon, 24 Oct 2022 13:30:50 +0200 Message-Id: <20221024113033.645906409@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747576231741663775?= X-GMAIL-MSGID: =?utf-8?q?1747576231741663775?= From: Chen-Yu Tsai [ Upstream commit 9f94f545f258b15bfa6357eb62e1e307b712851e ] The only clock in the MT8183 MFGCFG block feeds the GPU. Propagate its rate change requests to its parent, so that DVFS for the GPU can work properly. Fixes: acddfc2c261b ("clk: mediatek: Add MT8183 clock support") Signed-off-by: Chen-Yu Tsai Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20220927101128.44758-3-angelogioacchino.delregno@collabora.com Signed-off-by: Chen-Yu Tsai Signed-off-by: Sasha Levin --- drivers/clk/mediatek/clk-mt8183-mfgcfg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8183-mfgcfg.c b/drivers/clk/mediatek/clk-mt8183-mfgcfg.c index 37b4162c5882..3a33014eee7f 100644 --- a/drivers/clk/mediatek/clk-mt8183-mfgcfg.c +++ b/drivers/clk/mediatek/clk-mt8183-mfgcfg.c @@ -18,9 +18,9 @@ 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_sel", 0)