From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18017C46467 for ; Tue, 10 Jan 2023 12:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b2nAOdajbvGefDO4WQ98xjwTJ2QnqcPt6eUC1v+NVmY=; b=0uMGaff/maNM0L 9zzpCoiJ0H2yWZGrqT1axxJa5kPDk5yJC8r4PkQ7N3mHpJZoXyzrUCdrYimQxHqPLrrgswNlPd9gv IL3AKGo//ny3DRvTAXhREWA9m/qEW09XXaIOK/YjRobXi4t+UHz89z4E5+HxKextj1fLBU0j2VbyD tGTqF8HrVm8DUFY4GTznTgkhg52p/vJB5rZrs4wRzfs7UmW26Bb64rHOvt6oi3DTzmzuQHGgCyWGN pRgAg24ka2w5LRZr2POje92q8mQDhXLBi+YZeGJjf3rdNKlwQlRk4o3Ypnhbb7EfzqA+AVWRVIBtI Gvv344fxlTvWJGFCidHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFDo5-006tCO-Rj; Tue, 10 Jan 2023 12:32:45 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFDo2-006tBX-AQ; Tue, 10 Jan 2023 12:32:43 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 D5A5C6602D72; Tue, 10 Jan 2023 12:32:37 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673353959; bh=fN5gyt8JffTBLNEv/AsicLPn3AAzjD6PZaav/xa60RI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iOHUaegnR5bxW/PEQuwLF6b9sdSAJyCLscMJPjH0O6fXNmed8eX9eXHNgk+y9IU0k nSMkZSnuVtFY+kaDDYdn7zjmspq1ktsw9gamaf4B3TueM2F8/p2LqM14Gb33kjUHWS RQl14Kyho7fRaqqEVCZQ8HcJkj9dMrJy9QZKOWfLd0IkHG/lxE15SYTHzPXKHdKMAX nG0OhASg7J3Yx8BppJnnelRGSBLaK8ACc2nAlUSvBgllScLq88T5J5ZIhjRs1F3cZi J+dxjV9RFxXcDGltlOkZ2kO/tbY6zA7/PkT/hlZ7HAFjRskOygKbvaaY2q7fLxZgA7 JGG6L68MKplkw== Message-ID: <8bc4330b-0cfe-222b-7b8a-35fd15a30a52@collabora.com> Date: Tue, 10 Jan 2023 13:32:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2 09/23] clk: mediatek: mt8173: Remove mtk_clk_enable_critical() Content-Language: en-US To: Chen-Yu Tsai Cc: mturquette@baylibre.com, sboyd@kernel.org, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, fparent@baylibre.com, chun-jie.chen@mediatek.com, sam.shih@mediatek.com, y.oudjana@protonmail.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, ryder.lee@kernel.org, daniel@makrotopia.org, jose.exposito89@gmail.com, yangyingliang@huawei.com, pablo.sun@mediatek.com, msp@baylibre.com, weiyi.lu@mediatek.com, ikjn@chromium.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, kernel@collabora.com References: <20221223094259.87373-1-angelogioacchino.delregno@collabora.com> <20221223094259.87373-10-angelogioacchino.delregno@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230110_043242_537599_8ABCD8CB X-CRM114-Status: GOOD ( 19.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 30/12/22 05:58, Chen-Yu Tsai ha scritto: > On Fri, Dec 23, 2022 at 5:43 PM AngeloGioacchino Del Regno > wrote: >> >> The entire point of mtk_clk_enable_critical() is to raise the refcount >> of some clocks so that they won't be turned off during runtime, but >> this is the same as what the CLK_IS_CRITICAL flag does. >> >> Set CLK_IS_CRITICAL on all of the critical clocks and remove the >> aforementioned function as a cleanup. >> >> No functional changes. >> >> Signed-off-by: AngeloGioacchino Del Regno > > > Looks good to me, > > Reviewed-by: Chen-Yu Tsai > > However, if you move this patch before the previous one ... > >> --- >> drivers/clk/mediatek/clk-mt8173.c | 41 ++++++++++++------------------- >> 1 file changed, 16 insertions(+), 25 deletions(-) >> >> diff --git a/drivers/clk/mediatek/clk-mt8173.c b/drivers/clk/mediatek/clk-mt8173.c >> index 70cdc0719658..02231f8ba6d9 100644 >> --- a/drivers/clk/mediatek/clk-mt8173.c >> +++ b/drivers/clk/mediatek/clk-mt8173.c >> @@ -846,23 +852,8 @@ static const struct mtk_clk_rst_desc clk_rst_desc[] = { >> } >> }; >> >> -static struct clk_hw_onecell_data *mt8173_top_clk_data; >> -static struct clk_hw_onecell_data *mt8173_pll_clk_data; > > You wouldn't have to touch these lines twice? > That's true, but please, I prefer not to, as the patches are ordered for eas(y/ier) bisectability in case anything happens. Cheers, Angelo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel