Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1664953ioo; Sun, 22 May 2022 23:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhN5HiIXiO39spzSsM21p5kAW/vwzCzId2l5PQpq/JZXbgfjWtTVGnspnO0Mlj0OFyuIVl X-Received: by 2002:a17:90a:948b:b0:1df:6811:863b with SMTP id s11-20020a17090a948b00b001df6811863bmr25385555pjo.103.1653287717835; Sun, 22 May 2022 23:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653287717; cv=none; d=google.com; s=arc-20160816; b=CcSbnasxhe4iaPFYmld4bor2u5aNB03kZ06oiekBTEkXxUoCLgdXLpWX/+QbGyZbGp q5oPAe93ilmGKmNUorKFQcFlCN7FoJ02oFqOrz1AqtxqTyy54Rs2uN+qFzJqX2Fl/xYV Zd4O3YYwUZfmern5WZj5OHhT5BSusMQ44K2AhWSvtyl7JgE0xi7X9wMxUxhiUwiIUvVk TzlxfcuUfjQIUjYmNouMUplsvIJzOcSKkyrCnHydqZMRbojK/Maa75V7NuWO3IMjEqV2 Ejt4s1qoBRFObsJTIts6UE9IovXv2GZROrp+O3GtwvXx/Z29ZPrhuXi+HGJUBNIKyd/y ZDcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date:dkim-signature; bh=qWNcKlbHWt+buYUPc86j5JlNPnGvKXkUMAum0oQSfJ0=; b=C8CETceg3Y2QMWfy0iYEaK21RuJD72Yk5HkcI1Fx2aFbDHEaUtn76chYFR+OjJ9iTt RY5fU7kN2jImWV/iBmpXcTorwnpMyYsGBj1dpSBF6FUzV0++xt/tFvV2bpiRBnYhxBVA JwebFxjH/37LSjaCN64EtuDfUFlb50WAAy+9WOD94xmnRnQvaunCPhAicom+4VdRTqF6 pBy1jhPZpT0NJPL1msKpIBxwNG24WlSQIvRLN1iG0jwbX/BJ3S5xOfILeBbFfLSmgZUx PHq8YNLTO+HGjbBt3q3FArRI8xbjugS7Xe2S0PwUGDyfnSsHWfNOb2tvfBq/Vk+5fFNw GFIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LcE9bEgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g6-20020a17090a4b0600b001d949db23b3si12577888pjh.119.2022.05.22.23.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LcE9bEgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 101043BA49; Sun, 22 May 2022 23:10:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237547AbiESODo (ORCPT + 99 others); Thu, 19 May 2022 10:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238688AbiESODk (ORCPT ); Thu, 19 May 2022 10:03:40 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1571C2673; Thu, 19 May 2022 07:03:39 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id f9so10270269ejc.0; Thu, 19 May 2022 07:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=qWNcKlbHWt+buYUPc86j5JlNPnGvKXkUMAum0oQSfJ0=; b=LcE9bEgfBwTo+FP+bLoachNEfeucJ1OepYalzxu7uc6jEmRley8APjmdkai6m/XVAc Ya75wYu2NMpfUANb1K7kUDHYWCcXkmTEbT8b7eC6obk6nmJdBqKhFhrN0XlEGUOS38va 4ldMm/u49lHcF+2IBH75a8sAghe0xurqgbWccyAqO4mLCKlrctVwIpqpzjLDyGQzcirk n7m5dGw5dWTOgBJbZYpl3B7KJMFjTe8NedjJ7o/o2Y1HzA1yOOepTTvUkxg1N4L8fNYZ ifLUQ4h2MYsaO+czOwRsRl85AqrCFL8vjJcLLAtxcS5VB2E6d1Yw/qOO6W6fRmbYAr3h YCgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=qWNcKlbHWt+buYUPc86j5JlNPnGvKXkUMAum0oQSfJ0=; b=hXvo/VbUtzxSL6sVLt76fyjkVbZxLiIulA3mRfno9nEuiEFXOKK04zNlv/7DNw02ce XhTS1FVSIlmkHytydT9ZGFbr2HKbEqWqkcz7YAbbuhK8rsqFdao3Pkzq9W2M4TSH2vns +B0RGAE/JzEfwXj8WPFyXvhJj00vIV3MAUlOucLOWngAdL32tfMcI3/ZnWFenvQgTjYX MMeljGh8vutU0zxTUAv3leE83Tj8bkC04HR5lfKM+W0+/Y4eGDAV9wl1leTTY0Q4hVY9 VG3+mkhZGgd+R8QjUylJH4EFmT/Uesn5KyAeoUZba/6NSCmwh/c8tKrcASyXHrtVFreg GA7Q== X-Gm-Message-State: AOAM530Xpm9u/3N+O66JQl9RBabWWBjGxGjfWLoKXKyUwb6U4+x6TGGw t0YrGBhjpBgr+L52hchNa4k= X-Received: by 2002:a17:907:7b85:b0:6fd:d799:ef4e with SMTP id ne5-20020a1709077b8500b006fdd799ef4emr4492401ejc.319.1652969017544; Thu, 19 May 2022 07:03:37 -0700 (PDT) Received: from [192.168.52.247] ([217.138.206.82]) by smtp.gmail.com with ESMTPSA id m13-20020a17090672cd00b006f3ef214e3esm2097890ejl.164.2022.05.19.07.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 07:03:37 -0700 (PDT) Date: Thu, 19 May 2022 18:03:14 +0400 From: Yassine Oudjana Subject: Re: [PATCH 0/6] clk: mediatek: Improvements to simple probe/remove and reset controller unregistration To: Michael Turquette , Stephen Boyd , Matthias Brugger , Philipp Zabel Cc: Yassine Oudjana , Chen-Yu Tsai , Miles Chen , AngeloGioacchino Del Regno , Chun-Jie Chen , =?iso-8859-1?q?Jos=E9_Exp=F3sito?= , Rex-BC Chen , linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Message-Id: In-Reply-To: <20220519134728.456643-1-y.oudjana@protonmail.com> References: <20220519134728.456643-1-y.oudjana@protonmail.com> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-Spam-Level: * On Thu, May 19 2022 at 17:47:22 +0400, Yassine Oudjana wrote: > This series started as part of an earlier series adding support for > the main > clock controllers on MediaTek MT6735[1]. It has since been split off > and > expanded. It adds a new function to unregister a reset controller and > expands > the mtk_clk_simple_probe/remove functions to support the main 5 types > of clocks: > - PLLs (new) > - Fixed clocks (new) > - Fixed factors (new) > - Muxes (new) > - Gates (supported previously) > This should allow it to be used in most clock drivers, resulting in > reduced > code duplication. It will be used in MT6735 clock drivers in the > upcoming v2 > of the MT6735 main clock controller series. > > Dependencies: > - clk: mediatek: Move to struct clk_hw provider APIs (series) > > https://patchwork.kernel.org/project/linux-mediatek/cover/20220510104804.544597-1-wenst@chromium.org/ > - Cleanup MediaTek clk reset drivers and support MT8192/MT8195 > (series) > > https://patchwork.kernel.org/project/linux-mediatek/cover/20220503093856.22250-1-rex-bc.chen@mediatek.com/ > - Export required symbols to compile clk drivers as module (single > patch) > > https://patchwork.kernel.org/project/linux-mediatek/patch/20220518111652.223727-7-angelogioacchino.delregno@collabora.com/ > > Yassine Oudjana (6): > clk: mediatek: gate: Export mtk_clk_register_gates_with_dev > clk: mediatek: Use mtk_clk_register_gates_with_dev in simple probe > clk: mediatek: reset: Return reset data pointer on register > clk: mediatek: reset: Implement mtk_unregister_reset_controller() > API > clk: mediatek: Unregister reset controller on simple remove > clk: mediatek: Add support for other clock types in simple > probe/remove > > drivers/clk/mediatek/clk-gate.c | 1 + > drivers/clk/mediatek/clk-mt8192.c | 7 +- > drivers/clk/mediatek/clk-mtk.c | 123 > +++++++++++++++++++++++++----- > drivers/clk/mediatek/clk-mtk.h | 22 +++++- > drivers/clk/mediatek/reset.c | 41 ++++++---- > drivers/clk/mediatek/reset.h | 20 +++-- > 6 files changed, 167 insertions(+), 47 deletions(-) > > -- > 2.36.1 > Replying since there is a missing reference: [1] https://patchwork.kernel.org/project/linux-clk/cover/20220504122601.335495-1-y.oudjana@protonmail.com/