Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1953966rwb; Mon, 7 Nov 2022 07:35:06 -0800 (PST) X-Google-Smtp-Source: AMsMyM45AGsOkFmFAI6HSkjF/zanAPLljxRVztYqqNALfEzB/fFgDuyIr1DiZ7kTq/+F3bVQTueG X-Received: by 2002:a65:49c9:0:b0:462:9ce1:3f58 with SMTP id t9-20020a6549c9000000b004629ce13f58mr43118376pgs.200.1667835306490; Mon, 07 Nov 2022 07:35:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667835306; cv=none; d=google.com; s=arc-20160816; b=wkWPC4WyOS9htPld268L0EONVhJZmZAKpwghYGC9qH9KJNtiSzEPfXM8nrp5HCqG1y IllTq+N68heoY+WSJ0PjRcj0v7FdA7m/ZFytVyLlGYWknxxG3gmN65wwje19W9d6EuMS DWt0Kc8KzKpP9Y2zRACLb6SraNBCbWrLE0RD5dTzfob9AA4mA/9o32WwzD/d98ifhuLN nueIlKy1xOb9GakyfSy6PEMYsR8phd/xKgXNsyGCbv/t60WwGVOJE61zz42UlChPSOHF 3wstfUb5NC1j5VmSEK5M6iFljHrRrariQ0HvIa4edwoGYAetdQh69WlmdRd0ix/248tC qhvQ== 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=yY2+3tqYHY5/Nj0gegT3dgan1cJadcoMTwqFRr5L2kw=; b=xovOYTQna3x7ZsQ+5+nwxREhkQRqDNdi18Bme+gkiTaiAXSCNA3L5efJWZswKl+Gfa IfpcbVeKBZaUF92yduZxGQAIpN7fDVNme/MpEQeQzaipEIHHrJd+ihwZkkE75z3gCHZt f+sr5RLxVjd9qMYZnvG7JqvA2F8FtCB2CA+h79/Nj2YKoEY2GvPUp889fztIHu4wnC83 sI6BQPn9UYqN86vPG9yCzcOCr/QxZ3EYcIPQPVZ1b5ulocyO5lJ43rBNQwFtlklvgGyq l7T8EWKNpSxu+cyFVS0FYtyAOu//inz2Wo6npFLTmMk9AI+zp2rpbi/ZLKsy5YWtRouE xZPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=uoFE+zNk; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 72-20020a63044b000000b0046ebaf1821bsi10212485pge.113.2022.11.07.07.34.53; Mon, 07 Nov 2022 07:35:06 -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=fail header.i=@lechnology.com header.s=default header.b=uoFE+zNk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232455AbiKGOxg (ORCPT + 92 others); Mon, 7 Nov 2022 09:53:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231438AbiKGOxc (ORCPT ); Mon, 7 Nov 2022 09:53:32 -0500 Received: from vern.gendns.com (vern.gendns.com [98.142.107.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3682B7660; Mon, 7 Nov 2022 06:53:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yY2+3tqYHY5/Nj0gegT3dgan1cJadcoMTwqFRr5L2kw=; b=uoFE+zNkTW8nSe/gzYuumfpsP+ NvcVijNGM28CoRMokRZKPl1GdsfUdYxaotECOilfwMGqj6BDffp/BjbYJ4yNFbz+s2CxdyH6cX5Lr MQbgkIJMMe4KCteld8LCqTAZGoq+yD1zwmKygBYrGlp9J890ITSxlUQinxYNMXaiIbjzZUNRkZLPc eQ2bF+MdrKjTwAU1agFFumWE06f/sHmpU9d19bt9GE5dpUDqDWL2FEa0Etn1r/hl1rGdDPytmUEgS 3qcGJfAXI4zguO45vQRaGV2eDPPiAkD2S2PXeDRuGclR0xc+REj5X8IrdHJHPFg3D/FX3vIL0qFxd Z+O33w3Q==; Received: from ip98-183-112-30.ok.ok.cox.net ([98.183.112.30]:44606 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1os3Ut-00DZTt-S5; Mon, 07 Nov 2022 09:53:15 -0500 Message-ID: <7a2bf9aa-9489-fc91-9338-ec9d0835a43c@lechnology.com> Date: Mon, 7 Nov 2022 08:52:56 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 21/65] clk: davinci: da8xx-cfgchip: Add a determine_rate hook Content-Language: en-US To: Maxime Ripard Cc: Stephen Boyd , Maxime Coquelin , Chen-Yu Tsai , Daniel Vetter , Nicolas Ferre , Thierry Reding , Jaroslav Kysela , Shawn Guo , Fabio Estevam , Ulf Hansson , Claudiu Beznea , Michael Turquette , Dinh Nguyen , Paul Cercueil , Chunyan Zhang , Manivannan Sadhasivam , =?UTF-8?Q?Andreas_F=c3=a4rber?= , Jonathan Hunter , Abel Vesa , Charles Keepax , Alessandro Zummo , Peter De Schrijver , Orson Zhai , Alexandre Torgue , Prashant Gaikwad , Liam Girdwood , Alexandre Belloni , Samuel Holland , Matthias Brugger , Richard Fitzgerald , Vinod Koul , NXP Linux Team , Sekhar Nori , Kishon Vijay Abraham I , Linus Walleij , Takashi Iwai , David Airlie , Luca Ceresoli , Jernej Skrabec , Pengutronix Kernel Team , Baolin Wang , Sascha Hauer , Mark Brown , Max Filippov , Geert Uytterhoeven , linux-stm32@st-md-mailman.stormreply.com, alsa-devel@alsa-project.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-mips@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-actions@lists.infradead.org, linux-clk@vger.kernel.org, AngeloGioacchino Del Regno , patches@opensource.cirrus.com, linux-tegra@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20221018-clk-range-checks-fixes-v2-0-f6736dec138e@cerno.tech> <20221018-clk-range-checks-fixes-v2-21-f6736dec138e@cerno.tech> <187e61cd-7d02-2453-acf1-30180559d42f@lechnology.com> <20221107120611.vutsgpgpcorsgzwp@houat> From: David Lechner In-Reply-To: <20221107120611.vutsgpgpcorsgzwp@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, 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 11/7/22 6:06 AM, Maxime Ripard wrote: > Hi David, > > On Fri, Nov 04, 2022 at 11:45:17AM -0500, David Lechner wrote: >> On 11/4/22 8:17 AM, Maxime Ripard wrote: >>> The Davinci DA8xxx cfgchip mux clock implements a mux with a set_parent >>> hook, but doesn't provide a determine_rate implementation. >>> >>> This is a bit odd, since set_parent() is there to, as its name implies, >>> change the parent of a clock. However, the most likely candidate to >>> trigger that parent change is a call to clk_set_rate(), with >>> determine_rate() figuring out which parent is the best suited for a >>> given rate. >>> >>> The other trigger would be a call to clk_set_parent(), but it's far less >>> used, and it doesn't look like there's any obvious user for that clock. >>> >>> So, the set_parent hook is effectively unused, possibly because of an >>> oversight. However, it could also be an explicit decision by the >>> original author to avoid any reparenting but through an explicit call to >>> clk_set_parent(). >> >> >> The parent is defined in the device tree and is not expected to change >> at runtime, so if I am understanding the patch correctly, setting the >> CLK_SET_RATE_NO_REPARENT flag seems correct. > > Is that an acked-by/reviewed-by? > > Thanks! > Maxime The commit message could be updated to be more certain now, but sure... Acked-by: David Lechner