Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6863248rwl; Thu, 29 Dec 2022 22:53:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXt09/7wfRAvpWPy0g/jMKyr5O6H/5CVV+09AMu9yNKJtUlZaGKl/S1+n0db6n8Zdp4lu8ed X-Received: by 2002:a17:902:e802:b0:18f:9b13:5fc2 with SMTP id u2-20020a170902e80200b0018f9b135fc2mr44581843plg.52.1672383195192; Thu, 29 Dec 2022 22:53:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672383195; cv=none; d=google.com; s=arc-20160816; b=kMwFweO78hLOTvWbNxj4RsFDJsi7+2ZC4ehZhdrYZ3C5da4MsYEmwYA4pbJx5NHyvp Mqy6WyPDLzfHef0NKwNjNDUXRC00h5d4K7/JFlS6XDml4nZVyunFsTa9yg+IzrKs1fJV l6UHq+oLIsNyz4Mf99gkOQYSl9tPUGwojX3HzHDXb+u79FNUetxK8gEWhHkox3gnJZqR W5ZIkOJrFwjgltbGHTEqdT9Q/boB2WFk8KOhP0QqtXtJlO5ZDD+foq3XhFWDISKWnhCa A0zPM2couvKs6Ln1w4d4baKz9s4Bu8Z3KCpa/bVRAHskEh1W3+3QpAmOCH9iKzbfDsZR P1gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XrpQaBNpbz5C7gEc30JXJD4ksBAoVukkRs4REF7J3cA=; b=yAISWDWdVrB2v8CgnkLy1J/RCAePnMF04y61mZQbiX/oYQ93JTC49ahe3uOeWW0/it qPZ2y5cTkmJvT0uqB0kPfD6PljAerF5ipnqk71wd3AuJbybA47CRovvlhDmye/ioOIei ktGt7wao15MMUOuqoi7S0byjo4/vCf8HXOq/nLE0AnjxveWVihjyzXf8HP52C3xK6C4R f1ZLo48QkgaDz+ynEcf2jSl/BJvykcgeigdE4sCJ2Ppp+9J90NngPbj3Xt0bPLS/SDhy 3yzTNZCSWx58RFYQ0RHoAI7jL6Y6oKVscuVBtwf0O3tk/MdOR3ZCG27ANQq2GfZuTb9X N9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ieXRxqKl; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a170903300c00b00186b3cb9b80si19735408pla.354.2022.12.29.22.53.06; Thu, 29 Dec 2022 22:53:15 -0800 (PST) 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=@chromium.org header.s=google header.b=ieXRxqKl; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbiL3Gm4 (ORCPT + 64 others); Fri, 30 Dec 2022 01:42:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbiL3Gmy (ORCPT ); Fri, 30 Dec 2022 01:42:54 -0500 Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4D78186A9 for ; Thu, 29 Dec 2022 22:42:51 -0800 (PST) Received: by mail-vs1-xe29.google.com with SMTP id 3so20473468vsq.7 for ; Thu, 29 Dec 2022 22:42:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XrpQaBNpbz5C7gEc30JXJD4ksBAoVukkRs4REF7J3cA=; b=ieXRxqKlr8oyA7r8oWv5vNjeFdB1A3ZleV0nsNDeN+cCb+ZLeuFA5X93VFGh/jXSpy 8vhLveMu+xVU3utEC/s5ogI75eX3T82AglX1Uu2BHmrdqEb5fqhkuelWB5l3GEOzeI0i GFlJcKDDe2AAgKzGmoaCY8hHz4nCxh5d6ERJQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XrpQaBNpbz5C7gEc30JXJD4ksBAoVukkRs4REF7J3cA=; b=vhcgB+Y4BWrQxxRil2q4cdoZhaObkjzjCMJUDr4VsqNIIUKvbBxf4W/IRnpaNcnA+F t4a7UTwMPYc+k1vMPKAxPgBbn6aR2gV4bzDCW0fU06kpH3AErU95nB1L6BxNyBTu8XPP eEp7GQdlW6fxzrrtIX1WknNQgiXLjxeTP79/ao/puMHWsr1xWrw2fvb2A1b5wVCmxw+j Ln+wsWXY1YELDOI+YBIS5z/MgJfzzV5/36px+5izOywV2s3A7UirIQyItch0ExlZW7SV gCg6oaVXFwHLqCf23ITGB9IYahP/+4PE/3DiIRLSMXaJwD0iXI2v2Mn/Zv4Jz7oeHtPG /J1A== X-Gm-Message-State: AFqh2kreEGm/iIWTGRB9Zei0LUJKwvWVPCad0pggXh61edGoAGrBZNJz vLflQ/MhaoOrZXlcM3blmtCxp+po7Hzi2VcD06TRCg== X-Received: by 2002:a05:6102:3d9f:b0:3c4:4918:80c with SMTP id h31-20020a0561023d9f00b003c44918080cmr2656935vsv.9.1672382570811; Thu, 29 Dec 2022 22:42:50 -0800 (PST) MIME-Version: 1.0 References: <20221223094259.87373-1-angelogioacchino.delregno@collabora.com> <20221230061309.16643-1-miles.chen@mediatek.com> In-Reply-To: <20221230061309.16643-1-miles.chen@mediatek.com> From: Chen-Yu Tsai Date: Fri, 30 Dec 2022 14:42:39 +0800 Message-ID: Subject: Re: [PATCH v2 00/23] MediaTek clocks cleanups and improvements To: Miles Chen Cc: angelogioacchino.delregno@collabora.com, chun-jie.chen@mediatek.com, daniel@makrotopia.org, devicetree@vger.kernel.org, fparent@baylibre.com, ikjn@chromium.org, johnson.wang@mediatek.com, jose.exposito89@gmail.com, kernel@collabora.com, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, msp@baylibre.com, mturquette@baylibre.com, nfraprado@collabora.com, pablo.sun@mediatek.com, rex-bc.chen@mediatek.com, robh+dt@kernel.org, ryder.lee@kernel.org, sam.shih@mediatek.com, sboyd@kernel.org, weiyi.lu@mediatek.com, y.oudjana@protonmail.com, yangyingliang@huawei.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Fri, Dec 30, 2022 at 2:13 PM Miles Chen wrote: > > Changes in v2: > > - Moved dt-bindings CLK_DUMMY to clk-mtk.h instead > > > > > > This series performs cleanups and improvements on MediaTek clock > > drivers, greatly reducing code duplication (hence also reducing > > kernel size). > > > > There would be a lot to say about it, but summarizing: > > > > * Propagates struct device where possible in order to introduce the > > possibility of using Runtime PM on clock drivers as needed, > > possibly enhancing reliability of some platforms (obviously, this > > will do nothing unless power-domains are added to devicetree); > > > > * Cleans up some duplicated clock(s) registration attempt(s): on > > some platforms the 26M fixed factor clock is registered early, > > but then upon platform_driver probe, an attempt to re-register > > that clock was performed; > > > > * Removes some early clock registration where possible, moving > > everything to platform_driver clock probe; > > > > * Breaks down the big MT8173 clock driver in multiple ones, as it's > > already done with the others, cleans it up and adds possibility > > possibility to compile non-boot-critical clock drivers (for 8173) > > as modules; > > > > * Extends the common mtk_clk_simple_probe() function to be able to > > register multiple MediaTek clock types; > > > > * Removes duplicated [...]_probe functions from multiple MediaTek SoC > > clock drivers, migrating almost everything to the common functions > > mtk_clk_simple_probe(); > > > > * Adds a .remove() callback, pointing to the common mtk_clk_simple_remove() > > function to all clock drivers that were migrated to the common probe; > > > > * Some more spare cleanups here and there. > > > > All of this was manually tested on various Chromebooks (with different MTK > > SoCs) and no regression was detected. > > > > Cheers! > > I tested this v2 series on mt6779 and mt8192 without any problem. Please give Tested-by. :)