Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1041966rwl; Wed, 5 Apr 2023 10:58:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aONqLe/s0G9Nzl3oFEjJ9ofO3FEMnv5qHrQXpF45QpcUYJfnWxL05o2CQFD+sUkCJKAUBg X-Received: by 2002:a17:902:ea11:b0:1a0:70e5:280a with SMTP id s17-20020a170902ea1100b001a070e5280amr7768118plg.60.1680717519291; Wed, 05 Apr 2023 10:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680717519; cv=none; d=google.com; s=arc-20160816; b=rkU1ovw277OYyoE/6/9KGh20m5HieLlDJr5eLW7gap1q4W11tj2xEAKWL6GRIEI7kw pw6sofl70Z72o1NPUBE5HNqD/60ksrqz118ABkbWOxlhXLxt61RNvcRCkv/Gjwo6tXUS SumgFD4VfgOLnuFzEaVy7FkLeHWBlVEA8Xu9FIlSuxYAp+3IqNgTJyjQEhxWEfNz3kXe volTsDaxg84phe60jawerX5bgbPl22KHO6eLWLv9meeaAf8itDgHRC3zKihj+cjUf+7g 3SFy3EN4bIj1Bhc/p+n2BL+8TgstMllBSGU+CjvTk9Rwn6g/UU6CUAv03WvC5Wa4+QFX BwUw== 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=9w+mHpl3Feo9gU6TGM0RoWAtGMwIO5vz3Gl4AH/wd0s=; b=t3BJ59rslck0T1RIabLpSauNJeoixnZtqAnpU7x4shYgPjPObltj6g+VXUDHOVibhx V8Zekva4rwh8EYIa8ErbhOKycaNPSugYQBcxxHTkwQRtzkotR3u1hKix7SkCeJTTqssc iIE9uY3SKEGucbZ8QHUip+e9HXyBIlsiuQapVQPhCuGVX39t/xuVCIBMBm4z3CR8k6si Ci3nlm0ha12w1xZswm7vo2PDTPdpmsYgrxpE0nGzt4sI9IC7q0JyKmm5agB9IopQjWRK Pa/qEr0mztk22nqNqVis/9zWqp6/fVpYYe/U/wlxRa75xFUUex28REQsjnTimWKwatq2 TJsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=ZvxTGezm; 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 u17-20020a170902e81100b001a05d12eeb3si9114390plg.189.2023.04.05.10.58.27; Wed, 05 Apr 2023 10:58:39 -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=fail header.i=@lechnology.com header.s=default header.b=ZvxTGezm; 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 S233590AbjDER6P (ORCPT + 99 others); Wed, 5 Apr 2023 13:58:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233317AbjDER6O (ORCPT ); Wed, 5 Apr 2023 13:58:14 -0400 Received: from vern.gendns.com (vern.gendns.com [98.142.107.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49FAE3C3E; Wed, 5 Apr 2023 10:58:13 -0700 (PDT) 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=9w+mHpl3Feo9gU6TGM0RoWAtGMwIO5vz3Gl4AH/wd0s=; b=ZvxTGezmCbRayrfaajPz6xpEHS 9xqTZcht8r4gHITGoiwsva82Nok6b15BGWuZKWSrLl+I3zBJjcFwf+UVlJquHBRv6wFvYI9XwrFAK AgzAnA6iLxp8/KslBLav3VPrwP7yzajCOoDMluwwA0p5IDJNk2ky2i4WBjsguubUmD9qlk9wIZdLh Rs9LU80gk8BAFm6YxVWrvCkmN0PF+4w7b3AUJGiu8cG62CLZzIb1Vo9yu+vnZpxcqYUXpp9KjjPdh et6d+RYaSjzfpPU1FvXvLAARE6lEgkgpZ0BcGTPgYxK70fO1YQVl313vPOEpltdyn9itg7zaF7T+j NqJK3XzQ==; Received: from ip98-183-112-29.ok.ok.cox.net ([98.183.112.29]:57812 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1pk4gc-0004aP-2T; Wed, 05 Apr 2023 11:04:35 -0400 Message-ID: <2c8c6e3e-835e-f545-2a57-8e037d32fe9b@lechnology.com> Date: Wed, 5 Apr 2023 10:04:28 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 21/65] clk: davinci: da8xx-cfgchip: Add a determine_rate hook Content-Language: en-US To: Maxime Ripard , Michael Turquette , Stephen Boyd , =?UTF-8?Q?Andreas_F=c3=a4rber?= , Manivannan Sadhasivam , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Max Filippov , Charles Keepax , Richard Fitzgerald , Maxime Coquelin , Alexandre Torgue , Luca Ceresoli , Sekhar Nori , Abel Vesa , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Matthias Brugger , Geert Uytterhoeven , Dinh Nguyen , Peter De Schrijver , Prashant Gaikwad , Thierry Reding , Jonathan Hunter , Ulf Hansson , Linus Walleij , David Airlie , Daniel Vetter , Vinod Koul , Kishon Vijay Abraham I , Alessandro Zummo , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, patches@opensource.cirrus.com, linux-stm32@st-md-mailman.stormreply.com, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, linux-rtc@vger.kernel.org, linux-sunxi@lists.linux.dev, alsa-devel@alsa-project.org, linux-mips@vger.kernel.org References: <20221018-clk-range-checks-fixes-v3-0-9a1358472d52@cerno.tech> <20221018-clk-range-checks-fixes-v3-21-9a1358472d52@cerno.tech> From: David Lechner In-Reply-To: <20221018-clk-range-checks-fixes-v3-21-9a1358472d52@cerno.tech> 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=-1.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,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 4/4/23 5:11 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. > As mentioned in my previous review, parent is selected by device tree and should never be changed after init.