Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6013657rwl; Tue, 4 Apr 2023 06:50:00 -0700 (PDT) X-Google-Smtp-Source: AKy350YhrQPDwkG1dtOgKdhmE5d5IHpgMUrReML+h3w/O9dPZ8Mp3Z9yRDitzoRVs2egfyFBH/cP X-Received: by 2002:a17:906:b110:b0:927:dfc6:51e6 with SMTP id u16-20020a170906b11000b00927dfc651e6mr2963267ejy.6.1680616199907; Tue, 04 Apr 2023 06:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616199; cv=none; d=google.com; s=arc-20160816; b=WbLXgBRsRpg3Pe+/mKJb+Q53pUHLRhz4+U7lmF/55PbQbOkVIz3p5L/cK2qjtkOa8+ H7fB9lxJ/mgHVk5hX+wjpJ2SYmLLWz7nX3Fu4+SNATQlPIoDBriLi18ub6rspAzizmwS /7G3plVwSuEv/Bs5MQox3YiytppeuQNW96l+3I6qNIWNdH4/QHZiLAAeWiqOCi7grALq Oi6h8ZDAIaJOxEWcKiyXRWxoud5x8AfJsVFSaeZEtCgU+9O/74EyT/hfKvbG21dxhyTz p3e1fefFWfAYm8RtyqdPVoOnvPTfY2iVm76p6WkJX+ipr84mJvm3J1MNCvhI8hId6shZ yiiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hXtgBK14KPM4e26uH259a5f8IZMJzPMN2I/MMharuS0=; b=0PpYcmGIU96Tttq3eqJKSJRXkTmxKddtd4fZs9QEuW6nJigN9zKEvcGWZgS6DnEOC3 ne7TqpOb05glHTqN9Sdn7bitukvjin+Qbh2kfeZ+nyZzm5rZpSsJDvL8wjFI+mZ3/IJe xRkyhA681jdYHxZllgTtroyNFi8QXHdgmKsozolW0FaGFC+CEnDrjyJpywYjwuqdA50d 8QpBUz3Ssr4qkzl2xwLHfBJKuMxyjJ414/9XxDllqsOscuBXdVC0TNaDBMpRQpoM2m+K HP4Tjo1YOG90AzyYCog4wJdYugOjP8paqOx0gKbkH1C4OenC5f/qLReQ3KPZOOYWiNtW U0tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YoKEFBnF; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd21-20020a1709076e1500b00947e7acfc81si2471512ejc.736.2023.04.04.06.49.34; Tue, 04 Apr 2023 06:49:59 -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=@linaro.org header.s=google header.b=YoKEFBnF; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235122AbjDDNpO (ORCPT + 99 others); Tue, 4 Apr 2023 09:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235449AbjDDNo6 (ORCPT ); Tue, 4 Apr 2023 09:44:58 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE29C4C34 for ; Tue, 4 Apr 2023 06:44:37 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id p203so38671627ybb.13 for ; Tue, 04 Apr 2023 06:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680615877; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hXtgBK14KPM4e26uH259a5f8IZMJzPMN2I/MMharuS0=; b=YoKEFBnF4R/KLVFNoyxiZPhJmsqA79Ywp7c5w9VoTLbxOHPkU2UC3C6r9llU7auOt2 itjfCCAlEVj9pzFONUJdlZR26DS+6eTnTItG8/BdsRaJG+jnGN8Mar9S9nT8YJ6YbIvt PczIEgFKHpzSiJdwEFeV5bQ6D7RX1kxyHOzWUeUHZxaA2y7tu1cxjyIo01gmk0ySlvUZ 2ItBXfsRfASPgjZS7NTX/6Gf1VUStSpHFkFEFZGlN6IDFrz+MYZjApX3UW6qF8oUnIFx zKX/hy1RXkULjEErSDvMl/vL0BBq9FAoK0R7e10J9U08+BUnKq4oXitONkTYlPsXrglz sC3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680615877; h=content-transfer-encoding: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=hXtgBK14KPM4e26uH259a5f8IZMJzPMN2I/MMharuS0=; b=6zi7c6svOPWLMuwDrah2o+C1WFLthiidhrbZDu0l9ozf+Y5mRXo2aTQHb+gluV1w62 nl75qxW1R9tJg/0FFOhU63ttZcA8/72nss/t8OuMcok9t5vtfkMlVDzd3X1pEYC0zpfx 5k4RhSR8ccEJEPVoXEbhcno/3YwUOxeaGIhNSxwgsnWnnYxUT5CjufHKUSImFKomWRoE Ie5anbLmjKu++ZvET0Oa4aWRSco003fib9RThdw5eO5GpX07s9kZmLqVpHCz4/j0R8aq NMGRmZdUKDQYuhmDNL4LWqloe4IWmQAbOH9ij7oVwuemtO8i7cihYBeo9DIsbb0GDa3w CMqA== X-Gm-Message-State: AAQBX9d2eXxTVdD+jppqr+oTePS4cKo93GxrQzAvZyMG+UucvSSAaITe 1jM22zSDgdcUzGqq1mAym+jKzENNXdvYvpNpU/bCVA== X-Received: by 2002:a25:df10:0:b0:b75:8ac3:d5d2 with SMTP id w16-20020a25df10000000b00b758ac3d5d2mr1901844ybg.4.1680615876928; Tue, 04 Apr 2023 06:44:36 -0700 (PDT) MIME-Version: 1.0 References: <20221018-clk-range-checks-fixes-v3-0-9a1358472d52@cerno.tech> <20221018-clk-range-checks-fixes-v3-34-9a1358472d52@cerno.tech> In-Reply-To: <20221018-clk-range-checks-fixes-v3-34-9a1358472d52@cerno.tech> From: Linus Walleij Date: Tue, 4 Apr 2023 15:44:25 +0200 Message-ID: Subject: Re: [PATCH v3 34/65] clk: ux500: prcmu: Add a determine_rate hook To: Maxime Ripard Cc: 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 , David Lechner , 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 , 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 , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=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 Tue, Apr 4, 2023 at 2:45=E2=80=AFPM Maxime Ripard wr= ote: > The UX500 PRCMU "clkout" 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. Not even that. The parent is selected from the second cell of the device tree specifier, and the divisor from the third cell. See: Documentation/devicetree/bindings/clock/stericsson,u8500-clks.yaml So this definitely does not reparent. Yours, Linus Walleij