Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6963452rwl; Fri, 30 Dec 2022 01:04:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXslHjkFLyglJ5h0L0ABvkrE/UJGaMU6/D51iEmGgJpnGk6FhgKMRxJM/2OFLIUyHvz3pCCR X-Received: by 2002:a17:902:c643:b0:192:4c84:4508 with SMTP id s3-20020a170902c64300b001924c844508mr29668375pls.20.1672391075401; Fri, 30 Dec 2022 01:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672391075; cv=none; d=google.com; s=arc-20160816; b=DfckGj12cD2xZJVSEb78vjy4xXY9Dk36TYpjbAyEq50dEUoK0rueilipFfyija77TP wmZimWJKnWaG3Z83P/4oust8cWFnPy1CGVA4jP5QR7uOsu6tPFb/eiOWmoz7B7mMvmxB TDIKBnr1B/mGWfiDKuZnNwK3y2FnUD5pqDnWMp8iXQA9/NoIpDq4M9s5YD/131NZ+sJ0 zPd0QzpWsVSZ/BUw4Rmsbwqu68oJFUjC8Y8Atu3HMhpDaVy/si3qjLj4FXdxDMoe/b5a 1S5TgS9l59WAu//Pp5EdZ9phhppTEJiui8KXtQtGTia0IunHScvKc6SgEJf4wTk50VuT kJTg== 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=PPMh1bx7p+RWszUWsYNnjB1z/mUzp7J0r3Un1hyV3Yg=; b=eiQqtZV/HHxyr9CDwFdJPdzBP9OewbZGiPMYuPWQw/gdd7OMXdBw30D0Uxgw4Ekl7V BJK6zQmqpEqvf5sxXrM5LrLTh7j8x3df+ohWNfDNME6z4qHjpNgPTb9/w/nvPCm3beUn pa35bYrZ1ivBUwU/lOsDK/fQjZ4VZ5VhIl33PRmAL+caxk0FisjF4pLr4OfHEw7BoU2F yzeglvByhPyYNIEizBhRIeJpxY8oFmisT2Ak/ZtHjV1nAZPVv8e+yHpfZVA3eq9F9gv8 H1PuBe3XVntl6if2P0LGfn0Zaem+tLSnEYJeacEd/dD+HZT9JVZvPbutUCTuhp+X9Wa5 XfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ChHCyeXa; 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 u7-20020a17090341c700b00186c3afbd25si21492190ple.349.2022.12.30.01.04.26; Fri, 30 Dec 2022 01:04:35 -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=ChHCyeXa; 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 S234799AbiL3IW1 (ORCPT + 64 others); Fri, 30 Dec 2022 03:22:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234796AbiL3IWZ (ORCPT ); Fri, 30 Dec 2022 03:22:25 -0500 Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E8761A229 for ; Fri, 30 Dec 2022 00:22:24 -0800 (PST) Received: by mail-vs1-xe34.google.com with SMTP id s127so6680528vsb.5 for ; Fri, 30 Dec 2022 00:22:24 -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=PPMh1bx7p+RWszUWsYNnjB1z/mUzp7J0r3Un1hyV3Yg=; b=ChHCyeXa9C49zHneJZHTToGD050rLQoMOGL1Lt/Rd7kfXVQC+SosxVz7CrUpTLdzTj 3SsTVQD1ytTaph5osVDToCNpZog3wDsTWbuiRTLQVNrQOO0EpiYSIMhbbGipgpHpcZvY +Um7mpYegGA+xy2MrNrvT0WQmzf6ixi9Eff6o= 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=PPMh1bx7p+RWszUWsYNnjB1z/mUzp7J0r3Un1hyV3Yg=; b=3uUbtJYHBOmiKK8/8nE9vBQrOSsR79Hn2mCvETJdtw0YZalXjmZTLRr1zbANkY+xBX nkqIj+x2QTOUE1GfXlm/KrKsknrLVWIMIyDboKQ295ItUtdYsd7z93AuXrWbBqrm+e8p UDGcgbPVUYRzLo+hz8Ca97wIp+k9QT+oE74Ef2jdxShU/GJjp1tAEE9DQQgIvtnWVXg3 HqTPz0GMuncW2GN5bomO1BlfAKCczcsdVJygsUF2MoklqY+31NVtkNyZiu6YxfRN2+X0 zISgv8lbonpEqW+1y+O2Qf7TRPj1zYLJ1o1VF8wP3nZ/bSWu6qFchQpUZPhNGAx4cSob L8Qg== X-Gm-Message-State: AFqh2krwsWJ98ipbdkGCOULicMZFQ0tGSNlOfWRJiTcR2JT2yHEq7xx/ ago478BeYwjYpSj3wy/4Ypm4vMG82rLbLm5A1ROKHA== X-Received: by 2002:a05:6102:3d9f:b0:3c4:4918:80c with SMTP id h31-20020a0561023d9f00b003c44918080cmr2677891vsv.9.1672388543279; Fri, 30 Dec 2022 00:22:23 -0800 (PST) MIME-Version: 1.0 References: <20221223094259.87373-1-angelogioacchino.delregno@collabora.com> <20221223094259.87373-9-angelogioacchino.delregno@collabora.com> In-Reply-To: <20221223094259.87373-9-angelogioacchino.delregno@collabora.com> From: Chen-Yu Tsai Date: Fri, 30 Dec 2022 16:22:12 +0800 Message-ID: Subject: Re: [PATCH v2 08/23] clk: mediatek: mt8173: Migrate to platform driver and common probe To: AngeloGioacchino Del Regno 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 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=unavailable 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 23, 2022 at 5:43 PM AngeloGioacchino Del Regno wrote: > > This driver is using CLK_OF_DECLARE() for all clocks: while this > definitely works, it's not preferred as this makes it impossible > to compile non boot critical clock drivers as modules and to take > advantage of clock controller Runtime PM. > > As a preparation for a larger cleanup, migrate all of the clock > controller drivers for MT8173 to platform_driver and use the > common mtk_clk_simple_probe() where possible. Should also mention that proper error handling was added. Otherwise, Reviewed-by: Chen-Yu Tsai