Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp342088pxb; Thu, 21 Apr 2022 00:27:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMmUf3AA8yukjgY/dQMzH7ndAv1BW0VGOiXeKNMD0bn4iKtN7cjhA9F7uJrA9PmbRMs5lE X-Received: by 2002:a05:6402:268c:b0:423:ec54:6fec with SMTP id w12-20020a056402268c00b00423ec546fecmr18965446edd.151.1650526072912; Thu, 21 Apr 2022 00:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650526072; cv=none; d=google.com; s=arc-20160816; b=nzf1X62n9s9SNCAHKaPjcyr2jQ8VB33992dW5fnaGvKJQD6V/7w7quX5bBjvq6pW9J taam7vn7AIb0xz2++FgTV+Tr9jyjS6fs/p8+XoYa3zcJKlnbNFH4Y49xCyh0h2LqTVbH hpE1f5Ax8kYUR9u3aGWHbHaGTItFsQunUxd1QNBJzM/dqKyfFEzaXbirOJu0Jasz+RQz JQeeoD7O8Be/ccgFCQ56xniFU0JVPgV+QKi5Yj3mf3/Y6MC/mF+cJOxCA5pJeyrmgd7O MI/XTT5iYnKJ08hLZVk722dklmN14bbqlVAdVaskvQC14OUc150KIEWKg5lq/z1rh40b 2dcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=C/OMlYyXLqMFo/oibtdxVe++zlR+fVzQYWX4Mxn5uNw=; b=eWcT1Fqy/yiLXwGd67k7VYZZuojMPTGgEeTrNnODhsLi2Qo1+dTi/0chQ7UNQbdLCu eEM/U2FLLY/RAuzY0pn/kAX0hy95jWHUFZmRugO0xdJZVWtimDP/PrUHVEdxuul1rbKi gmw2jEYi9o8MgFDUU06Dp2QvsDbJtny1NTWbVxl1RahpkU+n4gsD7ME3vBu9n2pO8njI jvfkmwlqJqB5sSq/9xBXETqexyzQWd764hwWZhft5QreByJsBp+O1PB7vplOi9OTbAHE Cwc2crSJntklCCcIOZsvi7lYS0Wdgjq5TYP9xVyfmVa5lwQIFuJ/6BcGyaOwXAZlqcwK 9HyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iAOE9Sv0; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o23-20020a170906359700b006e878299792si3264557ejb.651.2022.04.21.00.27.28; Thu, 21 Apr 2022 00:27:52 -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=@collabora.com header.s=mail header.b=iAOE9Sv0; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240779AbiDSPLE (ORCPT + 99 others); Tue, 19 Apr 2022 11:11:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235986AbiDSPLD (ORCPT ); Tue, 19 Apr 2022 11:11:03 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD653A721; Tue, 19 Apr 2022 08:08:20 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id AC9801F4267B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1650380899; bh=wE87yBeheg5nImXJNHE8hDnX7SEP4mrWfxluB9Rr99Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iAOE9Sv0da11Nw5ZlOwrnD+04YO8d9pRVEOtAeTuuCzELSb0e7r/+3sVXylYRdLNQ 2YbLQXFNhKthcsABt5iOFOH1mk+ZXJZAwIjWnWJs41gl6KEW2zt11XwvpnCSeqSdb4 lz7nKBrFFdFl5zTztschsp8IA7iYk+v7jynLoRJYRdDxiDbMbXoK+u7MqAux3e4T1p VpAEml7dKCrm4ljeWeXPvYHHZq/cE/Mqo3kxN5m4EXoFNbSmB8soa7F+L76TUbdpEW 6/PyKOYJq4yZVcSd4tK9Npksy0IzurV1FRNS0ibppcHt6wvZXZQ7eUOHQbv+fFAMka lb1JTfaq6WZ4Q== Message-ID: <3591fcc1-d34a-b40a-4e78-edcf9d2ddf08@collabora.com> Date: Tue, 19 Apr 2022 17:08:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RFC PATCH 0/7] clk: mediatek: Move to struct clk_hw provider APIs Content-Language: en-US To: Chen-Yu Tsai , Michael Turquette , Stephen Boyd , Chun-Jie Chen , Miles Chen , Rex-BC Chen Cc: Matthias Brugger , linux-clk@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220419081246.2546159-1-wenst@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20220419081246.2546159-1-wenst@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Il 19/04/22 10:12, Chen-Yu Tsai ha scritto: > Hi everyone, > > This is part 2 of my proposed MediaTek clk driver cleanup work [1]. > ..snip.. > > The next phase of the cleanup/improvement shall be to introduce some > variant of `struct clk_parent_data` to describe clk relationships > efficiently. > > Please have a look. > Hello Chen-Yu, I am grateful to see this series, as the MediaTek clock drivers are getting a bit old, despite new platforms being implemented practically as we speak. With this, you surely get that I completely agree with the proposed cleanup and modernization of the entire MediaTek clocks infrastructure, but I think that introducing a `struct clk_parent_data` for these drivers is, at this point, a must, that not only fully justifies these patches, but also "makes the point" - as the effect of that would be a performance improvement as we would *at least* avoid lots of clk_cpy_name() in case of parent_hws, or in case or parent_data where no .fw_name is provided (which would be the case for most of the clocks). That said, my advice would be to add that conversion to declaring clocks with .hw.init.parent_data and/or .hw.init.parent_hws to this series as to really make it complete. Of course, if you have concerns about old platforms that you cannot test, or for which this kind of conversion would require a huge amount of effort, then I would go for converting as many as possible as a first step and then leave the others for later. I would envision MT8183, 8186, 8192, 8195 to be a good amount of first candidates for this great effort. Cheers, Angelo